Skip to main content
September 13, 2021
Solved

Compare Date and time

  • September 13, 2021
  • 1 reply
  • 0 views

I need to write a validation to avoid user from selecting past data and time.

My problem is when I use today() for comparison I get 13/09/2021 10:00 as date and time. There is a GMT component of 10 hours.

I am expecting  userInputDateTime >13/09/2021 00:00 

    Best answer by baratc

    Hi SaiS0002, 

    Please try using now() .

    https://docs.appian.com/suite/help/21.3/fnc_date_and_time_now.html

    Also please refer the text function link for further formats if required.

    https://docs.appian.com/suite/help/21.3/fnc_text_text.html

    Please let me know incase of any challenges. Thanks

    1 reply

    baratcAnswer
    September 13, 2021

    Hi SaiS0002, 

    Please try using now() .

    https://docs.appian.com/suite/help/21.3/fnc_date_and_time_now.html

    Also please refer the text function link for further formats if required.

    https://docs.appian.com/suite/help/21.3/fnc_text_text.html

    Please let me know incase of any challenges. Thanks