Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
dateformat incorrectly parsing date with leading 0's?
Description
Noticed an error in one of our tests when using the year function. It looks like date format is incorrectly parsing a date string with leading 0’s. 2024-09-09 is being parsed as 2024-00-09 so when using a subsequent date function it fails with “Can’t cast [2024-00-09] to a DateTime”.
@Jon Clausen looks like mmm isn't working in the current bx-compat module
Jon Clausen September 12, 2024 at 2:32 PM
I've added additional handling in to the compat module. All datetime BIFs which accept mask or format arguments now pass through an interception, once the compat module is installed to handle the legacy masks.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Noticed an error in one of our tests when using the year function. It looks like date format is incorrectly parsing a date string with leading 0’s.
2024-09-09
is being parsed as2024-00-09
so when using a subsequent date function it fails with “Can’t cast [2024-00-09] to a DateTime”.dateToAnalyse = "2024-09-09".dateFormat( "yyyy-mm-dd" ); writedump(dateToAnalyse); year1 = Year(date=dateToAnalyse);