I want to convert a date time field which is in UTC format to IST time format.
This is the query which I have.
select file_name,Process_start_time,Process_end_time from Process_logs
where process_Start_time and process_end_time are in UTC format which I want in IST format.
Thanks in advance.
2
Answers
To convert a UTC to IST in MySQL, you can use the
CONVERT_TZ
function.You can use
convert_tz
obviously
IST
is 5.30 hours ahead ofUTC