
Hi all
I have a variable that outputs this time/date:
Syntax of variable:
if(empty(items('Apply_to_each_Employee')?['dlg_defaultstarttime']), 'Empty',concat(utcNow('yyyy-MM-dd'), ' ', formatdateTime(items('Apply_to_each_Employee')?['dlg_defaultstarttime'], 'HH:mm')))
Time/date output:
I also have a convert time function outputting this date/time (my current date/time):
So as you can see above, the variable is holding my specified 'date/21:00' and 'convert time' is my local current date/time.
The condition below keeps resulting in false when it should be true in this case because the Var time is greater than current time:
I have a feeling the date format is not matching correctly, so can someone help me correct it so I can get the condition working?
Any help is appreciated.
Kind regards.
Hello @Usernametwice23 ,
I'd try to format the two dates into the same format. One of them is
yyyy-MM-dd HH:mm
The other one is
yyyy-MM-ddTHH:mm
I can imagine that the missing/extra T could cause a problem.