My apologies for not knowing how to do this, but it seems like it should be simple. I am trying to use PHP to hide certain events on a calendar that are being imported with an incorrect timestamp (2:00 AM should be All Day).
This is what I'm trying to use, but it is not working.
Any help would be greatly appreciated.
<?php
$t = field_event_date;
if ($t ="2:00 AM") {
echo "All Day";
}
?>