DATAPICKER DIFFERENT PROBLEM

Fuse 1.5.0 MacOs

The first problem
If I use DataPicker setting properties minData/maxDate on Android device (v 4.4.2) my app crash with this exception:

Uno.Exception: java.lang.IllegalArgumentException: fromDate: Mon Jan 01 00:00:00 CET 1900 does not precede toDate: Mon Jan 03 00:00:00 CET 1

Reproduce ISSUE:

<StackPanel>
    <JavaScript>
        var Observable = require("FuseJS/Observable");

        var someDate = Observable(new Date(Date.parse("1950-02-14T00:00:00.000Z")));

        someDate.onValueChanged(module, function(date) {
            console.log("someDate changed: " + JSON.stringify(date));
        });

        module.exports = {
            someDate: someDate,

            minDate: new Date(Date.parse("1900-01-01T00:00:00.000Z")),
            maxDate: new Date(Date.parse("2000-01-01T00:00:00.000Z")),

            whoYouGonnaCall: function() {
                someDate.value = new Date(Date.parse("1984-06-08T00:00:00.000Z"));
            }
        };
    </JavaScript>

    <NativeViewHost>
        <DatePicker Value="{someDate}" MinValue="{minDate}" MaxValue="{maxDate}" />
    </NativeViewHost>

    <Button Text="Who you gonna call?" Clicked="{whoYouGonnaCall}" Margin="5" />
</StackPanel>

The second problem
If I use datapicker without setting the properties minmax, I however it don’t work correctly. The ui datapicker is shifted and I see only January and February as a selection option


Reproduce issue

<App>
	<StackPanel>

	    <NativeViewHost>
	        <DatePicker />
	    </NativeViewHost>

	</StackPanel>
</App>

Datepicker in Fuse 1.9 has the same minDate / maxDate issue.

I don’t understand the issues; just set a reasonable min and max date?

Its a component that picks dates, the dates need to exist, hence the range is required.

Unless y’all complaining about defaults needing to be set for yo lazy asses? :stuck_out_tongue: