434
Views
7
Comments
Solved
[OutSystems UI] InitialDate in Date Picker won't set. Always returns current date
Question
outsystems-ui
Reactive icon
Forge asset by OutSystems

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. 

2022-01-13 11-39-41
Bernardo Cardoso
Staff
Solution

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



2021-07-21 10-26-16
Vani Mankad

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

UserImage.jpg
Janet D

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


2021-07-21 10-26-16
Vani Mankad

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;
}




2022-01-13 11-39-41
Bernardo Cardoso
Staff
Solution

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



2024-10-05 13-30-20
Huy Hoang The

Is there any way to fix this ?

In IOS have 2 option : Reset and Done.

if chose Reset -> the Date is Null

But i dont want the today is auto.

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Huy Hoang The 

This is quite an old post and a lot of versions were released since 2020.
Could you please explain where you need help, give context and share a sample with your use case?

Cheers,
GM 

2024-10-05 13-30-20
Huy Hoang The

Oh sorry, i forgot see the date of post.


I have created a new post at this link:


https://www.outsystems.com/forums/discussion/93281/ios-date-picker-auto-add-today-to-input-field/#Post400559

I can only describle my issue. I can't share my code. I need some suggestions for this issue. 

Thanks,

Huy Hoang.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.