How to convert mail received date to date type

I used
mailVar.Headers(“Date”)
to get mail received date but i want to add a specific no. of days in this particular date
so how to do it?

Hi @Aishwarya_Bhargava,

you can use an assign Date1 (Variable Type DateTime) = Date.ParseExact(String1, “dd/MM/yyyy HH:mm:ss”,System.Globalization.DateTimeFormatInfo.InvariantInfo)

@Aishwarya_Bhargava

Check as below for your reference
Convert Date & Time Format Tutorial

Hope this helps you

Thanks