This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 5,7 March 2019 | |
* | |
* Not sure how useful this is. Needs error handling for bad input. Et cetera. | |
* | |
* Returns a date format string based on locale, | |
* e.g., DateMask('en-US') returns 'mm/dd/yyyy'. | |
* | |
* Beware, relies on Date#toLocaleDateString() which is not 100% reliable | |
* across browsers. |