Block past dates in mobile calendar

Block past dates in mobile calendar

  

Hi all,

     I have a date field in my mobile app. On click of the field, it will open the mobile inbuilt calendar. I have to disable the past date in the mobile calendar. 


     How can this be achieved?


Thanks,

Gowtham

Tushar Panpaliya wrote:

You can use this : https://www.outsystems.com/forge/component/351/datepicker/

Hi,

     Thanks for your reply. The link you sent is for web but I have mentioned the inbuilt calendar in mobile.


Hi Gowtham,


You can use the attribute MinDate of the Calendar widget.

You can found the full documentation on how to use this widget in Mobile here.


Hope it helps.


Best regards,

João Marques

João Marques wrote:

Hi Gowtham,


You can use the attribute MinDate of the Calendar widget.

You can found the full documentation on how to use this widget in Mobile here.


Hope it helps.


Best regards,

João Marques

I am looking the answer related to the inbuilt mobile calendar.


Hi Gowtham,


This documentation is about Calendar widget of Silk UI which comes with OutSystems, you just have to reference it like shown below:



Then you just have to fill the MinDate parameter with CurrDate() to disable past dates



Cheers,

João

João Marques wrote:

Hi Gowtham,


This documentation is about Calendar widget of Silk UI which comes with OutSystems, you just have to reference it like shown below:



Then you just have to fill the MinDate parameter with CurrDate() to disable past dates



Cheers,

João

I am asking for the OS inbuilt calendar and not using the outsystems calendar.

Hi Gowtham,


I don't know if you can do it with your Operative System calendar, perhaps with JavaScript

In any case if you're using OutSystems, the easiest way would be using the Silk UI component mentioned above.