Here is sequence of steps i need to do :
1.I need to read emails
2.check the subject if there is
“Your date is: 22-26 March 21”
“Your date is: 15-19 Feb 2021”
"Your date is: 15-19 March 21
take the lastest date and get the date in format “dd/mm/yyy”
3.else in the subject if there is:
“next date is 5-7 working days.”
“next date is 12-14 working days.”
get the highest no of days
get the date from subject and get the date from all the
attachments(attachments can be email that has pdf or directly attached to
add the highest of days to latest date(subject , date from all the pdf)
finally return the get the date in format “dd/mm/yyyy”
Please help , or tag someone who can help
few errors that’s difficult to resolve :
how to retrieve the name of the attachment of email , attachment can be .msg .pdf .xls .xlsx format
retrieve the list of string as list of all the attachments of email ?
calculate the maximum/latest among three/four dates ?
solving this error after getting date from pdf
Assign: Conversion from type ‘Match’ to type ‘Integer’ is not valid.
convert date format(dd-MMM-yy) or (dd-MMM-yyyy) to (dd/mm/yyyy) and also how to change string into date format
new_date = DateTime.ParseExact(string_date.ToString,“DD-MMM-YY”, Globalization.CultureInfo.InvariantCulture).ToString(“DD/MM/YYYY”) this is not working