Suppose we have two date field or two date from SQL result and we want to find out if the eual or not, then you can try below cod code
if ( strtotime($date1) == strtotime($date2) )
{
echo "date is equal";
}
if ( strtotime($date1) == strtotime($date2) )
{
echo "date is equal";
}
No comments:
Post a Comment