Forum Moderators: coopster

Message Too Old, No Replies

Date and time question

         

Johny Favourite

11:15 am on Nov 17, 2004 (gmt 0)

10+ Year Member



Is there a way I can get today in a number variable out of 365?

I'm not sure if that makes sense, so example:

January 1 would be 1

December 31 would be 365

Thanks in advance!

coopster

11:51 am on Nov 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



print strftime [php.net]('%j');

P.S.
For a nifty little script that shows all the possibilities, have a look at the strftime snippet in the latest Bag 'o Tricks [webmasterworld.com] thread.

Johny Favourite

12:04 pm on Nov 17, 2004 (gmt 0)

10+ Year Member



thanks pal!