Question

2
Replies
686
Views
Chihiro Nakamura (ChihiroN)
Comture Corporation

Comture Corporation
JP
ChihiroN Member since 2020 10 posts
Comture Corporation
Posted: July 7, 2020
Last activity: July 7, 2020
Posted: 7 Jul 2020 3:10 EDT
Last activity: 7 Jul 2020 10:09 EDT
Closed

How to get the first and last days of the month?

 

I would like to get the first day of the month and the last day of the month and use them as the criteria for Validate.

For example;

    To allow only the input of dates from July 1st to 31st, the dates July 1st and 31st are acquired.

 

When I checked, I thought that Function "getStartAndEndOfMonthOfGivenDate" could be used,

but I think that the time may be obtained instead of the desired date.

Look at the line "3,4,10,11" of Java in the 4th step of Activity "pyAggregatePerformanceMonth" where this function is used.

Since the result is stored in a variable named "Time", I think that the time may be obtained instead of the desired date.

 

If you know it, I would be grateful if you could teach me.

Thank you.

***Edited by Moderator: Pallavi to update platform capability tags***

Pega Platform Decision Management
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.