Hi All,
I am getting an input value assigned to a variable like 24 December 2018.
Can we convert the above one to DD/MM/YYYY?
Thanks
Hi All,
I am getting an input value assigned to a variable like 24 December 2018.
Can we convert the above one to DD/MM/YYYY?
Thanks
@Pavan_Srikar
have a look here:
DateTime.ParseExact("24 December 2018", "dd MMMM yyyy", System.Globalization.CultureInfo.InvariantCulture).toString("dd/MM/yyyy")
hey @ppr thanks for the solution tried using the above got some error on string not recognized as valid date time.but later fixed that too
thanks @nv08 it worked fine for me.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.