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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

java - Why is BlockingQueue.take() not releasing the thread? -

jQuery Ajax Render Fragments OR Whole Page -