Skip to main content
April 16, 2022
Question

Save time field as UTC in Database

  • April 16, 2022
  • 1 reply
  • 0 views

Hi 

  In my interface we are having on filed as time (Text field). User will enter time in a format 00:00 AM/PM .while storing to DB its store as it is .Need to save this value in DB as UTC can we have any function to convert or how we handle this in save into.

    1 reply

    harshitb6843
    April 16, 2022

    totime("10:23 AM")-intervalds(0,timezone(),0)