i'm reading in a datetime from a database and then outputting to another text file.
However, the following code appears to display a date incorrect...such as: 18 00 2008
myCurrentLine.Append(((Dat
eTime)this
.m_Headers
.Rows[this
.m_Headers
Processed + i]["Order Date"]).ToString("dd mm yyyy"));
If i leave it without formatting:
myCurrentLine.Append(((Dat
eTime)this
.m_Headers
.Rows[this
.m_Headers
Processed + i]["Order Date"]).ToString());
i get the following result: 18/06/2008 00:00:000
What i need to display is just: 18 06 2008
any ideas why its setting the month incorrectly with this code:
myCurrentLine.Append(((Dat
eTime)this
.m_Headers
.Rows[this
.m_Headers
Processed + i]["Order Date"]).ToString("dd mm yyyy"));
Start Free Trial