This is a migrated thread and some comments may be shown as answers.

mvc scheduler recurrence exception parsing in code behind

1 Answer 38 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
rakesh
Top achievements
Rank 1
rakesh asked on 31 Oct 2020, 04:44 AM
hello. the recurrence exception generated from scheduler is in the format 20201028T053000Z. how can i parse it to datetime in c#?

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 03 Nov 2020, 04:24 PM

Hi Rakesh,

In order for a recurrence exception to be correctly set, you do not need to convert the 'yyyyMMddTHHmmssZ' string to a DateTime. In case, for some reason,  you need to parse the string to a date, you could use the approach described in the following StackOverflow thread. 

- https://stackoverflow.com/questions/21035465/system-datetime-parseexact-unrecognized-format-string

I hope, that the above helps you. Let me know in case you have additional questions on the matter.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Scheduler
Asked by
rakesh
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or