Question
3
Replies
1090
Views
Tcs
Posted: June 26, 2017
Last activity: July 10, 2017
Date Format Issue .. How to convert date into hours only
Hi All,
I want to convert date-time to hours so that I can apply validation rule whereas I need to check, the entered date should be grater than 24 hrs. Please advise!
Hi Varun,
You can use the @hour date function to return the Java int value corresponding to the hour of the day (0 to 23) for the validation.
The below links might be helpful.
https://pdn.pega.com/sites/pdn.pega.com/files/help_v718/procomhelpmain.htm#tools/expressionbuilder/ref_functions_datetime.htm
https://pdn.pega.com/community/product-support/question/change-editable-calender-date-time-format-24-hours-format
Thanks,
Gisela