Page 1 of 1

PHP Noobie - Coundown to a certain date...?

Posted: Tue Apr 20, 2004 9:49 pm
by NathanBWF
I'm new to the forums and new to PHP, so I'm sorry if this seems like a ridiculously easy question but anyway...

I want to write some PHP code that shows the exact number of days remaining until July 23rd, 2005 (it's for a friends wedding). Anyway, I was wondering what function(s) would you recommend in order to accomplish this...? I've been looking at the date/getdate functions but am not sure if these will be able to do what I'm looking for.

Any help would be greatly appreciated...

Posted: Tue Apr 20, 2004 10:04 pm
by litebearer

Posted: Tue Apr 20, 2004 10:12 pm
by d3ad1ysp0rk
Both PHP and Javascript would be able to do this, as they both have date functions that format nicely.