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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

127950 Dec 21,2016 01:20 AM UTC Dec 21,2016 10:05 AM UTC Xamarin.Android 2
loading
Tags: SfCalendar
David Strickland
Asked On December 21, 2016 01:20 AM UTC

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'

David Strickland
Replied On 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;

Rajkumar Ganesamoorthy [Syncfusion]
Replied On 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

CONFIRMATION

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.

Warning Icon 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.Close Icon

;