[OutSystems UI] InitialDate in Date Picker won't set. Always returns current date

Forge Component
(91)
Published on 25 Aug by OutSystems R&D
91 votes
Published on 25 Aug by OutSystems R&D

When I try to set the initial date using the Date Picker widget it keeps defaulting to current date. I have noticed that this is only a problem in version 2.4.1 it's fine with 2.3.2. 

As a work around, we set the desired date on Initialize event or on preparation and pass it to initial date. This will work.

Vani Mankad wrote:

As a work around, we set the desired date on Initialize event or on preparation and pass it to initial date. This will work.

Hi Vani,

I'm referring to a native app. The DatePicker does not have an on Initialize event, only an onSelect. 

Please confirm unless I'm missing something. 

Thanks, 

Janet


Hi,

Option 1 - DatePicker

I meant you can take one date variable and initialize that variable with desired date in OnInitialize event of screen as shown below and pass this date variable in InitialDate property of datepicker.



Option2  - Use Inbuilt device calendar by styling container


SyntaxEditor Code Snippet

.CalInput{
    background: white url(/img/calendariconpng.png) right no-repeat !Important;
       padding-right: 10px !Important;
}




Hi Janet D,


Thanks for the report! 

A fix will be provided on the next release of OutSystems UI (early next week).


Best regards,

Bernardo Cardoso