pjs.getDatePattern()
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
Separator (for example "/" or "-")
Century (optional) - used to prepend to the pattern for "*cymd", "*cmdy", and "*cdmy" formats
Return value
String pattern
Example
console.log(pjs.getDatePattern("*mdy", "/")); // outputs MM/DD/YY