Get current date with php

$timezome = 'YOUR TIME ZONE'; $timestamp = time(); $date = new DateTime("now", new DateTimeZone($timezome)); $date->setTimestamp($timestamp); $date->format('Y-m-d');

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.