Forum Replies Created

  • Dada Lunke

    November 18, 2014 at 12:26 pm in reply to: Date countdown?

    Hi,

    im new here so I apologise if this post isnt ok in any way 🙂

    I pasted your code the the source text layer and it works great.

    But how can I switch rows/lines so that the month name is in line1,
    the day is in line2 and the month is in line3? 🙁

    For Example:

    November
    19
    20

    Thanks in advance 🙂

    monthnames=["JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"];

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

    date_2=new Date(2015,3,1);
    milli_2=date_2.getTime();

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

    date_3=new Date(t);

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy