How do I convert DateTime to an Integer value?
Edit: How do I convert DateTime to a String value?
Example
String return value of 20100626144707 (for 26th of June 2010, at 14:47:07)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That could not be represented as an integer, it would overflow. It can be a long, however.
However, it would be more intuitive to simply express it as a string, but I don’t know what you intend to do with the information.
Edit:
Since you’ve updated the question, the answer is simpler.