captbaritone / captbaritone/datejs

Standard Date Specified 'd' is superseded by Custom Date Specifier

Open
#157 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
1. var date = new Date.parse('13-Aug-2012');
2. console.log(date.toString('d'));

What is the expected output? What do you see instead?
Expected "13", seeing "13/08/2012"

What version of the product are you using? On what operating system?
datejs 1.0 Alpha-1, Mac OS X 10.8

Please provide any additional information below.
The quick workaround is to use either date.toString('d ') or
date.toString('dd'), where in both cases I have to strip the space or the zero
(parseInt helps).

There should be a different letter for the standard or the custom specifier.
```

Original issue reported on code.google.com by `aviol...@gmail.com` on 13 Aug 2012 at 2:03

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.