View Single Post
Old 11-04-2006, 09:02 AM   #6 (permalink)
arul
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hic sunt leones ...
Age: 21
Posts: 1,287
Send a message via MSN to arul
Default

Quote:
Originally Posted by Soteric
After converting it will be sent to SQL database, so I need it to be DateTime, not string. Output it on console isn't my aim.
Well, DateTime does not work the way you think.

In fact, DateTime is stored as a number ( meaning the number of ticks passed since the beginning of the epoch ), the input format is used only to calculate how many ticks to add.

The output to the console was only an example, how to produce a formatted string.
__________________
Angels are falling the very last time, down they're burning in hate and decline, unfaithful and violent we're breaking the spell, we're god, we're scissor, in heaven and hell!
arul is offline   Reply With Quote