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.
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
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:
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; }
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.
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
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.
Huy Hoang.