Question

3
Replies
20879
Views
MarianeA Member since 2016 72 posts
Murex
Posted: 3 years ago
Last activity: 3 years 10 months ago
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 Interface
Moderation Team has archived post
Share this page LinkedIn