Question
4
Replies
17909
Views
Sberbank
Posted: September 28, 2017
Last activity: October 16, 2018
Closed
Solved
How to convert a "dd.mm.yyyy" format string to Date?
I get a "dd.mm.yyyy" format string and I need to convert it to Data or "YYYYMMDDT000000.000 GMT" format.
How can I do it?
***Edited by Moderator Marissa to update categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Try using PRDateFormat.parseAsDateTime(null, null, format, text) method. Below are the details about this method.
parseAsDateTime(java.lang.String aLocale, java.lang.String aZone, java.lang.String[] aPatterns, java.lang.String aValue)
You provide a list of patterns in an attempt to guess the correct format.
See the Rule-Edit-Input DATETIME which actually does exactly (more or less) what you want.