Discussion
4
Replies
31082
Views
Posted: March 2, 2016
Last activity: July 5, 2016
Closed
How to get current date?
Hi,
Does anyone know how to get the current date?
I need the user to select the current date in a calendar.
I tried using the default value but for some reason the user can still change it even though it is read only.
Hello Bryan,
You may use the Expression Builder to access a number of functions that will get you the current date. For example in the DateTime library one function you may use as the default value is @(Pega-RULES:DateTime).getCurrentDateStamp() - see below. Regards, Lu