Question

5
Replies
7613
Views
AshishK6140 Member since 2015 12 posts
Tata Consultancy Services
Posted: August 14, 2017
Last activity: August 16, 2017
Closed

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 Low-Code App Development Dev/Designer Studio Data Integration Java and Activities User Interface
Moderation Team has archived post
Share this page LinkedIn