Question
Pegasystems Inc.
IN
Last activity: 11 Jul 2023 8:42 EDT
Localize yyyymmdd of date type to a text type property
As an example FromDate and ToDate are of Date type which is stored internally as yyyymmdd. This str value is not being localized. Are there any OOTB functions to localize the values?
@FormatDateTime() - Since its accepting a datetime type, Its returning a blank value
Tried pxparseDateTime- But again, date is not being localized. It's returning 20230710T155658.010 GMT.
Appreciate any help on this
Deepika
@Deepika Sree
You can append the Time string to end of your date property and then use it with @FormatDateTime() function.
For Example:
Param.FromDate = FromDate + "T000000.000 GMT"
Param.ToDate = ToDate + "T000000.000 GMT"
Then You can use the above two values in the @FormatDateTime()