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!
|