0

I have a string which looks like 20130611T150000Z which is nothing but 2013 - 06 - 11- 15:00:00 in UTC time. How can I convert this to DateTime using c#? I am getting this value from kendoScheduler.

0

1 Answer 1

2

Use the ParseExact method. Example:

string d = "20130611T150000Z";

DateTime t = DateTime.ParseExact(d, "yyyyMMdd'T'HHmmss'Z'", CultureInfo.InvariantCulture);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.