Skip to main content
New Participant
Apr 16, 2022 4:13 AM UTC
Question

Save time field as UTC in Database

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
    Brainy
    Apr 16, 2022 4:53 AM UTC

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