datetime - Convert dd-mm-yyyy into mm/dd/yyyyy in C# -
i want convert date dd-mm-yyyy default format of date time "mm/dd/yyyy" in c#.
is there string format helps me do.
(datetime.parseexact(input, "dd-mm-yyyy", cultureinfo.invarientculture).tostring("mm/dd/yyyy")
(not assuming defaults – "mm/dd/yyyy" not default date format people.)
Comments
Post a Comment