PRDateFormat.parseAsDateTime is not working as expected
As per Engine API definition,
public static final java.util.Date parseAsDateTime(java.lang.String aLocale, java.lang.String aZone, java.lang.String[] aPatterns, java.lang.String aValue)
convenience method to parse a String as a DateTime, trying a list of patterns in an attempt to guess the correct format.
- Parameters:
aLocale
- locale to useaZone
- time zone to defaultaPatterns
- array of patterns, if null or empty, a default list will be usedaValue
- String to parse
----------------
I'm setting Patterns as below :
java.lang.String[] aPatterns = { PRDateFormat.DEFAULT_DATETIME_DEFAULT, PRDateFormat.DEFAULT_DATETIME_SHORT, PRDateFormat.DEFAULT_DATETIME_LONG, PRDateFormat.DEFAULT_DATETIME_FULL, PRDateFormat.DEFAULT_DATETIME_SHORT_YY, PRDateFormat.DEFAULT_DATETIME_SHORT_YYYY };
At Runtime can you explain which Pattern will be used ?
I want to understand how this function picks the Pattern from this array ?
***Edited by Moderator: Pallavi to update platform capability tags***