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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -