question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue formatting 02/20

See original GitHub issue

Describe the bug const month = dayjs.utc(02/20, 'MM/YY').format('MM') const year = dayjs.utc(02/20, 'MM/YY').format('YYYY')

The above returns:

month = 03 year = 2020

Expected behavior month = 02 year = 2020

Additional Information I think this is a leap year issue

Information

  • Day.js Version: v1.8.16
  • OS: MacOS 10.14
  • Browser Chrome 78
  • Time zone: GMT-06:00 DST (Central Daylight Time)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marc-fisher-q2ecommented, Oct 31, 2019

Odd, just cloning that example I see a different result, no changes.

https://runkit.com/svjard/5dbb2da38795ea001414b056

0reactions
iamkuncommented, Jan 6, 2020

fixed in #761 and will use the first day of the month while there’s no ‘day’ provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support code formatting · Issue #220 · Azure/bicep - GitHub
Successfully merging a pull request may close this issue. Code formatter for Bicep Azure/bicep. 2 participants. @alex ...
Read more >
Drive is locked - error 0220 - WD Community
' windows cant be installed to this disk ' and tried to fix that problem using cmd , nothing happened. ... Hello and...
Read more >
Formatting error in the field EKPO-MEPRF - SAP Community
Hi Friends, I am doing a development of a mass upload tool using BDC recording for creating and updating contracts using ME31K and...
Read more >
ISO 8583 - Wikipedia
ISO 8583 defines a message format and a communication flow so that different systems can exchange these transaction requests and responses.
Read more >
XSL Transformations (XSLT) Version 2.0 (Second Edition)
Abstract. This specification defines the syntax and semantics of XSLT 2.0, a language for transforming XML documents into other XML ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found