Skip to content

Release version 2.1.0

Choose a tag to compare

@jama5262 jama5262 released this 01 Nov 19:08
302e1f4
  • Ordinal date parsing and formating
    In Jiffy you can now parse and format with ordinal date. e.g
Jiffy().format("MMM do yyyy"); // Oct 19th 2019

It also supports locales for the following

"en", "es", "fr", "frch", "frca", "it", "itch", "ja", "ko", "pt", "ptbr", "zh", "zhcn", "zhhk", "zhtw", "de", "deat", "dech"

  • Added daysInMonth method to get number of days for specific months .e.g
Jiffy([2016, 1]).daysInMonth; // 31
Jiffy([2016, 2]).daysInMonth; // 28
Jiffy([2017, 2]).daysInMonth; // 29