G
Guest
Suppose it's Oct. 2, 2004 and time is 03:01:27.
I need a number (integer) that is in this form:
days hours minutes seconds
Using the example, the number will be:
2030127
Right now, I'm converting DateTime.Now to strings, concatenating them and
converting back to an integer:
"2" + "03" + "01" + "27"
Is there an easier way to do this?
I need a number (integer) that is in this form:
days hours minutes seconds
Using the example, the number will be:
2030127
Right now, I'm converting DateTime.Now to strings, concatenating them and
converting back to an integer:
"2" + "03" + "01" + "27"
Is there an easier way to do this?