Changing date format


#1

Hi,
I used get text method to retrieve the date from email which is as shown in picture below. I want to fetch April 10, 2018 and convert it into specific date format say “dd/MM/yyyy” so that I can compare it with current date. Can anyone help me out please. Thanks

date


#2

@suwalruchan365 if your getting mail date in date variable you use following commend Convert.ToDateTime(mailDate).ToString(“dd/MM/yyyy”)