1<?php
2echo "Today is " . date("Y/m/d") . "<br>";
3echo "Today is " . date("Y.m.d") . "<br>";
4echo "Today is " . date("Y-m-d") . "<br>";
5echo "Today is " . date("l");
1$today = date("F j, Y, g:i a"); // October 30, 2019, 10:42 pm
2$today = date("D M j G:i:s T Y"); // Wed Oct 30 22:42:18 UTC 2019
3$today = date("Y-m-d H:i:s"); // 2019-10-30 22:42:18(MySQL DATETIME format)
1date_default_timezone_set('Asia/Kolkata');
2echo date("Y-m-d H:i:s"); // time in India