Question

1
Replies
1296
Views
Prahlad Gupta (PrahladG)
Infosys

Infosys
IN
PrahladG Member since 2015 6 posts
Infosys
Posted: March 28, 2019
Last activity: March 28, 2019
Posted: 28 Mar 2019 7:19 EDT
Last activity: 28 Mar 2019 17:01 EDT
Closed
Solved

Need to format CurrentDateTime based on user timezone.

Hi,

i have developed UI for business user to make Scheduled absences for user. If user is unavailable for that particular time period we should not allow to assign any work to him

Here my requirement is to verify current date should not be in given date period(Example 3/24/2019 to 3/29/2019). while trying to verify this i need to consider user timezone also.

I have fetched user details in Operator page and trying to use his pyDefaultTimeZone. but its using always server timezone.

@FormatDateTime(@(Pega-RULES:DateTime).CurrentDateTime(), yyyyMMdd, "Operator.pyDefaultTimeZone", "")

Please let me know how to use user timezone.

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

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