Hey All, thanks for stopping by.
Query - Need to convert date format from mm/dd/yyyy to dd/mm/yyyy
Eg lastupdateddate format = mm/dd/yyyy
I tried with below but did not worked :
set_lastupdateddate = lastupdateddate.ToString(“dd/MM/yyyy”)
Hey All, thanks for stopping by.
Query - Need to convert date format from mm/dd/yyyy to dd/mm/yyyy
Eg lastupdateddate format = mm/dd/yyyy
I tried with below but did not worked :
set_lastupdateddate = lastupdateddate.ToString(“dd/MM/yyyy”)
Hi @prerna.gupta ,
Please try this,
DateTime.ParseExact(strDate, "MM/dd/yyyy",System.Globalization.CultureInfo.InvariantCulture).toString("dd/MM/yyyy")
Thanks