I’m new to this robot framework. I have a requirement where i need to get the difference between two date fields of format "mm-dd-yyyy hh:mm:ss AM/PM " Please be informed am/pm must include in the date format.
I 'm getting the text value of the above field and able to print values in string format.
Now while convert the string values to Date format by using ‘CONVERT DATE’. i’m getting
value error :
valueError: time data ‘0113-20-22 09:07:48.000000’ does not match format '%Y-%m-%d %H:%M:%S.%f’
Below two dates i’m reading and printing on console as string value.
…Receive Date 01-13-2022 09:22:16 PM
.Regulatory DueDate 02-12-2022 09:22:16 PM
I need difference in days or hours between two days using robot framework.
Since both the date should be in same dateformat to get the time difference. I’m stuck in this scenario to get time difference. Anyone please help with the snippet. If they have. It’s an urgent requirement. Please help.