# Reading the Recurrence Rule

The recurrence rule is incomplete without the start and end date of the first occurrence.

You need to set them to the **StartDate** and **EndDate** properties before retrieving the recurrence rule.

The following example builds the recurrence rule by reading the Start and End date from two **RadDatePickers** on the page:

![Save Recurrence](https://www.telerik.com/products/aspnet-ajax/documentation/assets/d8f7c3d4408f988c595335158c5ce602/scheduler_saverecurrence.png)

```C#
	     
	
protected void SaveButton_Click(object sender, EventArgs e)
{    
	RecurrenceEditor1.StartDate = StartDate.SelectedDate.Value;    
	RecurrenceEditor1.EndDate = EndDate.SelectedDate.Value;
	// Read the recurrence rule    RecurrenceRule rrule = RecurrenceEditor1.RecurrenceRule;
	// Or directly as string    string rruleText = RecurrenceEditor1.RecurrenceRuleText;
}
				
```

```VB
	
Protected Sub SaveButton_Click(ByVal sender As Object, ByVal e As EventArgs)
	RecurrenceEditor1.StartDate = StartDate.SelectedDate.Value
	RecurrenceEditor1.EndDate = EndDate.SelectedDate.Value
	' Read the recurrence rule Dim rrule As RecurrenceRule = RecurrenceEditor1.RecurrenceRule
	' Or directly as string Dim rruleText As String = RecurrenceEditor1.RecurrenceRuleTextEnd Sub
End Sub	
```
