Retrieve the current date and time in a particular time zone

suggest change

This fetches the value of NOW() in local time, in India Standard Time, and then again in UTC.

SELECT NOW();
SET time_zone='Asia/Kolkata'; 
SELECT NOW();
SET time_zone='UTC'; 
SELECT NOW();

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents