Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Date/DateTime.yyyy-mm-dd about 250x as fast
Also allow a separator to be specified, so that you can now say: Date.yyyy-mm-dd("/") to get "2020/03/14" for today. The default separator being "-", to remain compatible with earlier versions. It dawned upon me that: a. .yyyy-mm-dd was basically the default formatter of Date b. adding an optional separator would have close to no performance effects
- Loading branch information
Showing
2 changed files
with
16 additions
and
18 deletions.
There are no files selected for viewing
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
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