Monday, March 16, 2009

C#: Control over date formatting, replace ToShortDateString

 

I found that it is more flexible and readable for me to use the ToString formatting for dates

objDate.ToString("MM/dd/yyyy");

than to use this:

objDate.ToShortDateString()

1 comments:

elvis said...

I think so. I am doing my project and using this method to format a date to the form dd/MM/yyyy.

Post a Comment