I want to loop through this format of a string and only execute a fucntion if system date is more than this column, how can i compare the string to a system date. I have tried using datetime assign but the format is not getting accepted. The format I enter in custom format is MMM dd, yyyy HH:mm but its not getting converted to string for me to compare and execute next function. Please help
Timestamp
Jan 5, 2024 09:03
Jan 5, 2024 08:22
Jan 5, 2024 08:20
Jan 5, 2024 08:18
Jan 5, 2024 08:09
Jan 5, 2024 07:46
Jan 5, 2024 07:46
Jan 5, 2024 09:39
Page 1 / 1
Hi @s 9425 ,
Convert the $System:Date$ variable to string through To String action in DateTime package. After that, loop through the above list in your post and compare each item with the String Date variable and do the next set of action accordingly.
Hi @s 9425 ,
Convert the $System:Date$ variable to string through To String action in DateTime package. After that, loop through the above list in your post and compare each item with the String Date variable and do the next set of action accordingly.
@Padmakumar, but how can I compare system date string and string in list to check if one is greater than the other?
Hi @s 9425 ,
Convert the $System:Date$ variable to string through To String action in DateTime package. After that, loop through the above list in your post and compare each item with the String Date variable and do the next set of action accordingly.
@Padmakumar, but how can I compare system date string and string in list to check if one is greater than the other?
Ok, for that, you don't have to convert anything, just use the If → Date condition.
Here, instead of strDate, you can use each list item within a loop for comparison. You can add further conditions as well based on your requirements.
Hi @s 9425 ,
Convert the $System:Date$ variable to string through To String action in DateTime package. After that, loop through the above list in your post and compare each item with the String Date variable and do the next set of action accordingly.
@Padmakumar, but how can I compare system date string and string in list to check if one is greater than the other?
Ok, for that, you don't have to convert anything, just use the If → Date condition.
@Padmakumar, okay but the format list still needs to be converted right?
Hi @s 9425 ,
Convert the $System:Date$ variable to string through To String action in DateTime package. After that, loop through the above list in your post and compare each item with the String Date variable and do the next set of action accordingly.
@Padmakumar, but how can I compare system date string and string in list to check if one is greater than the other?
Ok, for that, you don't have to convert anything, just use the If → Date condition.
@Padmakumar, okay but the format list still needs to be converted right?
No, just mention the format as MMM d, yyyy HH:mm only for the Source value.
Hi @s 9425 ,
Convert the $System:Date$ variable to string through To String action in DateTime package. After that, loop through the above list in your post and compare each item with the String Date variable and do the next set of action accordingly.
@Padmakumar, but how can I compare system date string and string in list to check if one is greater than the other?
Ok, for that, you don't have to convert anything, just use the If → Date condition.
@Padmakumar, okay but the format list still needs to be converted right?
No, just mention the format as MMM d, yyyy HH:mm only for the Source value.