When using date pickers, sometimes we have the need to be able to set no value at all. For that just created a control to a support nullable date value but also provide the possibility to clear it.
Using it is really simple, let’s do it step by step:
1-In your Forms project add this control
In the code above created a new property called NullableDate, we are going to use this property instead of the Date Property.
2-In the Android project add this NullableDatePickerRenderer
3-In the iOS project add this NullableDatePickerRenderer
4-Use the control
As you can see here instead of using the Date property you will use a new property called NullableDate.
Also, if you want to change the default placeholder empty value you can do it by using the PlaceHolder property.
You can see the full source code used here:
Happy coding! 🙂