Date format changing

i have an invoice with invoice date format “yyyy/mm/dd” , but after extracting invoice date i need to write the data to excel in the format of “mm/dd/yyyy” , how can i do that??

@asiv.balan You can try this Expression :
Datetime.ParseExact(yourDate,“yyyy/dd/MM”,System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)

2 Likes

i am getting output in string variable

@asiv.balan String Array ?

sorry string variable

@asiv.balan Yes you can convert it to a String datatype only if you need the format in that way :sweat_smile: