You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed a bug characters inside square brackets `[]` are not validated.
37
+
35
38
- 0.14.0
36
39
-**Feature Freeze**
37
40
38
41
We decided to freeze the feature with this version (except the following). The next will be 1.0.0.
39
42
40
43
- To support `ES Modules` (without transpile) in the next version, the importing method has changed in the `locale()` and the `plugin()`. As this version you will see the warning message if using the old method. See [LOCALE.md](./LOCALE.md) and [PLUGINS.md](./PLUGINS.md) for details.
41
44
42
-
- Added `transform()` function to transform the format of a date string. When changing the format, in the past you would convert the date string to a date object with the `parse()`, and then format it with the `format()` again, but you can now do this with a single function.
45
+
- Added `transform()` function to transform the format of a date string. When changing the format, previously you would convert the date string to a date object with the `parse()`, and then format it with the `format()` again, but you can now do this with a single function.
- Added `microsecond` plugin for the parser. Microsecond is not supported by date objects so that it is rounded `millisecond` at the inside. See [PLUGINS.md](./PLUGINS.md) for details.
107
110
108
-
- 0.12.0
109
-
- The parser now supports `Z` token to parse timezone offset.
110
-
- (**Breaking Change**) **Excleded `YY` token from the parser**, added it as `two-digit-year` plugin. See [PLUGINS.md](./PLUGINS.md) for details.
111
-
- (**Breaking Change**) Decided to **change the default behavior of `A` token** to fix the non-intuitive definition. Sepcifically, in the `format()` it now outputs `AM` / `PM` instead of `a.m.` / `p.m.`, and in the `parse()` it recognizes `AM` / `PM` only. Other `A` tokens are supported as `meridiem` plugin.
String in parenthese`[...]` in the `formatString` will be ignored as comments:
324
+
Use square brackets`[]`if a date-time string includes some token characters. Tokens inside square brackets in the `formatString` will be interpreted as normal characters:
334
325
335
326
```javascript
336
327
date.parse('12 hours 34 minutes', 'HH hours mm minutes'); // => Invalid Date
0 commit comments