37
Views
6
Comments
about Currdate
Question

I'd like to change the date in the process using Currdate and test it, but Currdate can't do it, right?

Rank: #86

Hi Biginner,

Hope you're doing well!

Can you please give us more detail about what do you want to achieve?


Kind regards,

Rui Barradas

Rank: #28113

Rui Barradas wrote:

Hi Biginner,

Hope you're doing well!

Can you please give us more detail about what do you want to achieve?


Kind regards,

Rui Barradas

 It is implemented to output a pop-up message only on a specific date (3rd day). I'd like to do that test, but I can't wait for the next three days, so if there's a way to change the Currdate, please let me know. 

 

mvp_badge
MVP
Rank: #135

Hi,


Yes, you can add 3 days in the date using date functional available in OutSystems,

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Date_and_Time

Thanks

Champion
Rank: #131

Hi Biginner,

Please use AddDays function to get specific day that you want.

Refer screen shot :

Outsystems Provide so many Build-In-Functions :


Hope this will help you :)

Please let me know if you have any queries.

- AV

Thanks

Champion
Rank: #675

Hi,

You can use below function to achieve that:

AddDays(DateTime, Integer)Adds 'n' days to 'dt' and returns a valid Date Time.


AddDays(CurrDate(),3)

Here 3 is number of day which will be added in current day.

Hope this will help you,

Regards,

Vipasha

Champion
Rank: #376

Hi Biginner,

You're right, CurrDate() always returns the current date, so today.

To test your popup, you've to write some specific code to mimic the date 3 days from now, as all the answers above show you.

Regards,
Lennart