We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Cannot implicitly convert type 'System.DateTime' to 'Java.Util.Calendar'

Thread ID:





127950 Dec 20,2016 08:20 PM Dec 21,2016 05:05 AM Xamarin.Android 2
Tags: SfCalendar
David Strickland
Asked On December 20, 2016 08:20 PM

The example code provided in


Errors out on the assignment line with

DateTime d1=new DateTime(2015,1,1);

Cannot implicitly convert type 'System.DateTime' to 'Java.Util.Calendar'

David Strickland
Replied On December 20, 2016 08:48 PM

Well Stumbled around in the sample code and found           

Calendar maxCal = Calendar.Instance;
maxCal.Set(view.MaxDate.Year, view.MaxDate.Month, view.MaxDate.Day);
calendar.MaxDate = maxCal;

Rajkumar Ganesamoorthy [Syncfusion]
Replied On December 21, 2016 05:05 AM

Hi David,

Thanks for bringing it to our notice.

Currently we are modifying the user documentation of SfCalendar control. This modification will be available in our upcoming Volume 1,2017 release which is expected to be rolled out by the first week of February 2017.

Rajkumar G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.