Hey looking to convert this string into datetime
20101119T162837
And then also how to compare this string to current time so I can say, i.e:
30 Mins difference or 2 hours 10 min difference etc
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.
Use DateTime.ParseExact()…
edit: I’m not sure about the default format so you can try the simple Parse method first like George Stocker recommended