After opening the file, make sure all of the values in the “DATEMAT” column are in the current month and current year. Please note, for the “DATEMAT” column, any of the following formats are correct: 16-Feb-23, 02-16-23, 02-16-2023, 02/16/2023, 02/16/23
Welcome to UiPath Community Forum,
I’m not able to understand your query, could you please elaborate ?
Please provide more context about your requirement, also remember for better solutions provide input examples and expected output
Regards!
I got excel file where column has date. date any type like(16-Feb-23, 02-16-23, 02-16-2023, 02/16/2023, 02/16/23) bot need to check the date where date is on current month and current year
it should handle any format of date
I’ve created a work flow for it please refer, this will handle any date format in your input excel sheet.
UiPath Forum.zip (10.0 KB)
- i’ve assigned todays date to a variable and format i prefer
- Read Range to read data from the excel file
- used for each loop to check each data row which contains date
- Got the date from the cell and assigned to a variable in the format specifed above for todays date
- used if actvity and in the condition used string1.contains(string2) to check wheather both the string matches.
the code will give error when it can’t identify date format like “10-02-2022” and “02-10-2022”,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.