In a ticket i will get a date in the format “dd/MM/yyyy”. I have to check it with the current date to see if it has passed or its a future date.
Hi @karan_kapoor1,
1.Assume this is your ticket date : dd-MM-yyyy
2.Now system date will be system.datetime.now.toshortdatestring(make sure those two dates are in same format)
3.In if just use < to check the condition
if this solves your query then mark this as solution.
Happy Automation!
Regards,
Aditya
@karan_kapoor1
do the check on dateTime base and not on string base
parse the given date string into a datetime
parsing and check can be done as below:
my date is 01/09/2020 and i need to compare it with today’s date. i have stored the “01/09/2020” date in a string variable. please help me out with Screen shots of the workflow
[quote=“karan_kapoor1, post:4, topic:249005, full:true”]
my date is 01/09/2020 and i need to compare it with today’s date. i have stored the “01/09/2020” date in a string variable. please help me out with Screen shots of the workflow
@karan_kapoor1
check the screenshot from above and create the variable in your workflow
thanks man. it worked
@karan_kapoor1
perfect so do your further testing and then please mark the solving post as solution in order to close the topic. Happy automation
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.