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***