T
Trevor Balcom
Hello, I am new to C# and cannot figure out how to do something simple. How
can I build two strings out of a DateTime object? I need one string to
contain the DateTime's date in YYMMDD format. The other string should
contain the DateTime's time in HHMMSS format. Both strings should always
return a length of 6 characters (they should have leading zero if neccessary
to pad each field out to two digits). There should be no delimeter
characters in the strings, just the digits. e.g: "040104" for 1/4/2004,
"135259" for 1:52:59 PM. Any advice will be appreciated.
can I build two strings out of a DateTime object? I need one string to
contain the DateTime's date in YYMMDD format. The other string should
contain the DateTime's time in HHMMSS format. Both strings should always
return a length of 6 characters (they should have leading zero if neccessary
to pad each field out to two digits). There should be no delimeter
characters in the strings, just the digits. e.g: "040104" for 1/4/2004,
"135259" for 1:52:59 PM. Any advice will be appreciated.