You should store the time as a unix time stamp then you can use human_time_diff to compare.
echo human_time_diff( get_the_time('U'), current_time('timestamp') );
If the difference is more than 24 hours difference it will return the value in days.
You should store the time as a unix time stamp then you can use human_time_diff to compare.
echo human_time_diff( get_the_time('U'), current_time('timestamp') );
If the difference is more than 24 hours difference it will return the value in days.