in a bd it looks like this:
2001-03-31 00:00:00.000
when i print it on the screen it looks like this:
Mar 31 2001 12:00AM
I know that i can format date() almost any way i want, and i did format output the same way as above, but how can i compare them?
i want something like this:
$result = mssql_query("SELECT date FROM table where id=1");
$myrow = mssql_fetch_array($result);
$date = $myrow["date"];
if ($date> date(F j Y g:i A) )
{ echo "date in DB is bigger \n"; }
else
{ echo "date in DB is smaller\n"; }