Question
TCS
TCS
IN
TCS
Posted: Dec 2, 2020
Last activity: Apr 18, 2021
Last activity: 18 Apr 2021 5:58 EDT
Closed
concatenate date and time into datetime
from service we are getting time and date separate values as below.
Date : 2018-08-02 and 20180802
Time : 13:52:00 and 1352
now we need to display it in UI as m/d/yy h:mm am/pm. how to achieve this.
***Edited by Moderator: Pooja Gadige to add platform capability tag***
To see attachments, please log in.
@sudheerp2695
You will need to know what timezone the time is in before you can complete this.
Assuming the time is in GMT:
It is important to know the timezone of the time you receive as Pega will want to manage it in the GMT timezone.
Once on the clipboard as a Pega DateTime property, a field on your Section rule bound to the Date Time property provides options on the date/time format to display that timestamp as. Pega will also display the date/time according to the timezone of the current user, as per the TimeZone value on their Operator ID.
Using your proposed format, a user in US East Coast would see the time shown as:
8/2/18 9:52 am
@sudheerp2695
You will need to know what timezone the time is in before you can complete this.
Assuming the time is in GMT:
It is important to know the timezone of the time you receive as Pega will want to manage it in the GMT timezone.
Once on the clipboard as a Pega DateTime property, a field on your Section rule bound to the Date Time property provides options on the date/time format to display that timestamp as. Pega will also display the date/time according to the timezone of the current user, as per the TimeZone value on their Operator ID.
Using your proposed format, a user in US East Coast would see the time shown as:
8/2/18 9:52 am
... as in August they are 4 hours behind GMT.