Ashish Kathait (AshishK6140)
Tata Consultancy Services

Tata Consultancy Services
AshishK6140 Member since 2015 12 posts
Tata Consultancy Services
Posted: August 14, 2017
Last activity: August 16, 2017
Posted: 14 Aug 2017 8:49 EDT
Last activity: 16 Aug 2017 5:46 EDT

How to set current date time to Beginning or End of the day

We have two DateTime properties "Start Date" and "End Date"

To set Default value of "Start Date" and "End Date" as current date we are using function @(Pega-RULES:DateTime).CurrentDateTime(). While checking the property on the clipboard it is displaying as 20170814T122032.036 GMT. It is understood as it is setting the current Hours and current Minutes.

According to our requirement we want Default value of "Start Date" to be set to Beginning of day ie 20170813T000000.000 GMT and "End Date" to be set to end of the day ie 20170814T235900.000 GMT.

Is there a way to achieve this by doing changes directly in the property?

Low-Code App Development Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.