Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Date countdown?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John PalaganasDate countdown?
by on Jun 22, 2009 at 12:42:59 am

Hey guys,

Been an avid viewer on the forum and site but finally something I can't figure out :)

Expressions is not my forte, can you guys point me out on how to do a date countdown by day?

Let's say I can start a specific date (August 21, 2029) to countdown to (June 1, 1887).

So the first thing that countsdown is the day then month then year. Is it very hard?

Thank you to anyone that can point me to the right direction.
John


Return to posts index
Reply   Like  

John PalaganasRe: Date countdown?
by on Jun 22, 2009 at 12:51:51 am

It's all good, found it! Effects -> Numbers (Format: Long Date)

Thanks!!!


Return to posts index
Reply   Like  

Filip VanduerenRe: Date countdown?
by on Jun 22, 2009 at 6:46:49 am

Thankfully, the javascript Date() object works in After Effects:


monthnames=["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];

date_1=new Date(2029,7,21); // watchout month 0=januari, 11=:december !
milli_1=date_1.getTime();

date_2=new Date(1887,5,1);
milli_2=date_2.getTime();

//interpolate from 0 to 5 seconds;
t=linear(time,0,5,milli_1,milli_2);

date_3=new Date(t);

monthnames[date_3.getMonth()] + " " + date_3.getDate() + " " + date_3.getFullYear();


You'll probably want to control the interpolation with a slider instead of directly throught time.



Return to posts index
Reply   Like  


John PalaganasRe: Date countdown?
by on Jun 22, 2009 at 2:19:54 pm

Thanks Filip! Will try this as well!
John


Return to posts index
Reply   Like  

Filip VanduerenRe: Date countdown?
by on Jun 22, 2009 at 5:34:48 pm

I can't get the Numbers thing to work with dates before 12/11/1912, slider=-30000 but this maybe a Mac limitation.



Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>


FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2012 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]