Date is not binding correct when we Set "MMMM yyyy" format

Hi, 
I am using Syncfusion Datepicker in this I am setting this "MMMM yyyy" format .
I am binding value from database where datatype is nullable DateTime.
So my problem is when I am getting value from database like this "3/1/2020 12:00:00 AM" then in datepicker it shows February 2020 instead of showing March 2020.
It will be helpful if I could get any solution for this.

below I provided code for reference,

                         <div class="form-group row">
                                <label class="col-sm-3 form-control-label mt-2">License From</label>
                                <div class="col-sm-9">
                                    <div class="control-section">
                                        <div id="wrapper" class="datepicker-section">
                                            <div id="datepicker-control">
                                                <SfDatePicker TValue="DateTime?" @bind-Value="image.LicenceFrom" Placeholder="Choose a Date" Format="MMMM yyyy"                                                                    Start="CalendarView.Year" Depth="CalendarView.Year">
                                                    <DatePickerEvents TValue="DateTime?" OnClose="OnCloseHandler"></DatePickerEvents>
                                                </SfDatePicker>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>  

Where image is model object it contains 
public DateTime? LicenceFrom { get; set; }



1 Reply

BC Berly Christopher Syncfusion Team May 25, 2020 09:48 AM UTC

Hi Ashwini, 
  
Greetings from Syncfusion support.  
  
We would like to inform you that if we you define the format for the DatePicker component means, you can customize and showcase the display value in the input for the selected date from the popup only. If you want to get the value based on the provided date format, we suggest you to covert the date value based on the format in the application itself manually.  
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon