Question

2
Replies
94
Views
Santosh Kumar Reddy Yellannagari (SANTOSHKY)
Wipro
Santosh Kumar Reddy Yellannagari
Wipro
IN
SANTOSHKY Member since 2013 6 posts
Wipro
Posted: June 3, 2021
Last activity: 3 weeks 4 days ago
Posted: 3 Jun 2021 4:27 EDT
Last activity: 23 Aug 2021 15:55 EDT

How to convert a string to date without knowing the format

Hi All,

We have a service which returns a date in the response. Here the date can be in various formats and it is not consistent.

For example, it returns date as  "05-MAR-2021" or "2021-03-05" or etc... .

Now we need to convert this date in string format to Date format YYYYMMDD.

Any leads on this please?

Pega Platform 7.2.2 Data Integration Java and Activities Communications and Media Senior System Architect Pega Academy