How to set a Date Picker control's default value to now (current date) in UiPath App Studio?

Hi, is there a way to set a date picker’s default value to the current date? I tried firing an event upon loading the app which assigns the value of the date picker control to Date.Now but it doesn’t work. I tried using Date and Date/Time as data type, and also tried assigning DateTime.Now or just Now , but all didn’t work.


Preview mode shows the following instead.


This might be done using a process that will set an argument’s value to the current date, but I’m wondering if it can be done in UiPath App Studio without starting a process.

Hi @kwv, we’re working to add expressions (like Date.Now) to Apps that allow you to do just that. In the meantime, as a work-around, you can use a process to get the current date.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.