Question

3
Replies
22895
Views
Close popover
Mariane Ammar (MarianeA)
Murex

Murex
LB
MarianeA Member since 2016 72 posts
Murex
Posted: October 26, 2016
Last activity: October 26, 2016
Closed
Solved

Date format conversion

Hello,

I need to retrieve the current date time in the following format: 2016-10-26T12:37:39

I am using the function @DateTime.CurrentDateTime(). It returns the following format: 20161026T091021.909 GMT 

Any ideas on how to convert "20161026T091021.909 GMT"  to "2016-10-26T12:37:39"?

 

Please note that I have tried the following: @(Pega-UIEngine:Formatter).pxFormatDateTime(@DateTime.CurrentDateTime(),"yyyy-MM-dd'T'HH:mm:ss") but it returns any empty time as such: 2016-10-26T00:00:00

Thank you,

Mariane 

***Updated by moderator: Lochan to add Categories***

Case Management User Experience
Moderation Team has archived post,
Close popover 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.