That is what I was attempting but found a nuance... mmddyyyy formats as
minute, day, month. The correct format is MMddyyyy.
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Use the ToString overload and pass the format required in it.
Eg:
dt.ToString("mmddyyyy"); or
dt.ToString("dd-mm-yy");
--
Rakesh Rajan
"Jack" wrote:
I am trying to format a DateTime object as mmddyyyy and NOT mm/dd/yyyy.
What is the easiest way to do this?