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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -