pjs.getDatePattern()
Description
The pjs.getDatePattern() API converts a date format, such as *iso, *mdy, *ymd, or *usa, to a pattern, such as YYYY-MM-DD, MM/DD/YY, YY/MM/DD, or MM/DD/YYYY.
Parameters
Date format - The date format to convert.
Separator - The separator character to use in the pattern, for example
/or-.Century (optional) - Used to prepend to the pattern for the
*cymd,*cmdy, and*cdmyformats.
Return Value
The pattern, as a string.
Example
console.log(pjs.getDatePattern("*mdy", "/")); // outputs MM/DD/YY