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. Image for the cookie policy date
close icon

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

The example code provided in

https://help.syncfusion.com/xamarin-android/sfcalendar/blackoutdates

Errors out on the assignment line with

DateTime d1=new DateTime(2015,1,1);
	sfCalendar.MinDate=d1;


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

2 Replies

DS David Strickland December 21, 2016 01:48 AM UTC

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;


RG Rajkumar Ganesamoorthy Syncfusion Team December 21, 2016 10:05 AM UTC

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.

Regards,
Rajkumar G

Loader.
Live Chat Icon For mobile
Up arrow icon