Controtol date >= today

0
i want to do a control of the date, $Prenotazione/DataPrenotazione != empty and  $Prenotazione/DataPrenotazione >= [%CurrentDateTime%] if i use this xpath i have an error on validation…..but today is the 30/07/2023 june, where is the problem? $Prenotazione/DataPrenotazione >= [%CurrentDateTime%]   is not correct?    
asked
2 answers
1

Hey Nicolò,

You can use the [%BeginOfCurrentDay%] token instead of [%CurrentDateTime%].
It should work fine in your case.

answered
0

Hi,

The validation which has been thrown in the microflow right technically.

$Reservation/ReservationDate = 30/06/2023

Current date and time = 30/07/2023

 

$Reservation/ReservationDate is not empty, which is true in your workflow.
$Reservation/ReservationDate is not greater than or equal to [%CurrentDateTime%].

 

30/06/2023 is not greater than or equal to 30/07/2023, which is false. Therefore, the microflow returns false in your validation.

answered