Is there any way to convert DateTime value into a Long number?
Like in Excel you will get 41016 for Apr 17, 2012.
Thanks for sharing your time.
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.
DateTime has a Ticks property, which represents the date in a
Long:http://msdn.microsoft.com/en-us/library/system.datetime.ticks.aspx
Edit based on your comment:
Maybe you need the
ToFileTimemethod then? Otherwise I don’t know what you meanhttp://msdn.microsoft.com/en-us/library/system.datetime.tofiletime.aspx