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

How to get se first and lastday of the week in code behind?

1 Answer 64 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 25 Apr 2012, 02:00 PM
Hi

I would like to get first and last day of the week in the the code behind.

Regards
Frank

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 26 Apr 2012, 04:13 PM
Hello Frank,

You can access the first and last day of the week in RadScheduler by its properties FirstDayOfWeek and LastDayOfWeek.
Here is example:
protected void Button1_Click(object sender, EventArgs e)
{
    DayOfWeek firstDaye = RadScheduler1.FirstDayOfWeek;
    DayOfWeek lastDate = RadScheduler1.LastDayOfWeek;
}


All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Frank
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or