$today = date_create(date("h:i:s A"));// create text of todays date $new_year = date_create('2023-01-01 00:00'); $difference = date_diff($today , $new_year); // this is an array
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter