# How can we set initialized datepicker to start of the todays month?

**URL:** <https://forum.radzen.com/t/how-can-we-set-initialized-datepicker-to-start-of-the-todays-month/9245>\
**Category:** Blazor WebAssembly\
**Created:** [October 21, 2021, 1:05pm UTC](https://forum.radzen.com/t/how-can-we-set-initialized-datepicker-to-start-of-the-todays-month/9245 "2021-10-21T13:05:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![420BlazorIt](https://forum.radzen.com/user_avatar/forum.radzen.com/420blazorit/32/21792_2.png) [@420BlazorIt](https://forum.radzen.com/u/420BlazorIt)\
**Post date:** [October 21, 2021, 1:05pm UTC](https://forum.radzen.com/t/how-can-we-set-initialized-datepicker-to-start-of-the-todays-month/9245/1 "2021-10-21T13:05:47Z")

</div>

Hi,  
I'm using radzen datepicker and I want to set the initial value to the start of todays month.  
For example: If today is January 12th, the datepicker will be set to January 1st.  
If today is October 21st, the datepicker will be set to October 1st.

Is there any way to achieve this?

```auto
<RadzenDatePicker @bind-Value=@startDateInit DateFormat="d" />

@code{

DateTime? startDateInit = DateTime.Now;

}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [October 21, 2021, 2:55pm UTC](https://forum.radzen.com/t/how-can-we-set-initialized-datepicker-to-start-of-the-todays-month/9245/2 "2021-10-21T14:55:15Z")

</div>

Google returned the following: [c# - Getting the first and last day of a month, using a given DateTime object - Stack Overflow](https://stackoverflow.com/questions/24245523/getting-the-first-and-last-day-of-a-month-using-a-given-datetime-object)

---

<div class="post-metadata">

**Author:** ![420BlazorIt](https://forum.radzen.com/user_avatar/forum.radzen.com/420blazorit/32/21792_2.png) [@420BlazorIt](https://forum.radzen.com/u/420BlazorIt)\
**Post date:** [October 21, 2021, 3:48pm UTC](https://forum.radzen.com/t/how-can-we-set-initialized-datepicker-to-start-of-the-todays-month/9245/3 "2021-10-21T15:48:25Z")

</div>

Nice, i figured it out now thanks!
