For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > April 2007 > $date1 larger then current date?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author $date1 larger then current date?
Gustav Wiberg

2007-04-24, 7:59 am

Hi guys!

=20
I'm searching for what I thought would be an easy issue comparing dates. I =
just want to know if a date in variable
$date1 is larger then current date.=20
=20
I use the format YYYY-MM-DD in $date1
and I know how to retrieve the current date and set it in $dat2
=20
But how do I know if $date1> $date2 ?
=20
I have looked around, but I havent found any easy solution. It seems to be =
a big deal? Is that the case?
=20

Best regards
/Gustav Wiberg
=20
=20
=20
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com