Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip leading zeros on dates #877

Open
anselmbradford opened this issue Aug 11, 2015 · 6 comments
Open

Strip leading zeros on dates #877

anselmbradford opened this issue Aug 11, 2015 · 6 comments

Comments

@anselmbradford
Copy link
Member

One place in the code stripped the leading zero from the date. We don't do this anymore with #871, but should we? Should the dates be NOV 02, 2015 or NOV 2, 2015?

@anselmbradford
Copy link
Member Author

cc @schaferjh @duelj @ajbush

@schaferjh
Copy link
Member

Hmmm. The main reason I can think of for keeping the leading zero is for uniform spacing.....but that doesn't seem like it should be more important than legibility, and I definitely think the date is more legible without the 0. After looking at the examples in #871 I'm pro-getting rid of the 0.

Any other opinions?

@anselmbradford anselmbradford changed the title Strip leading zeros on dates? Strip leading zeros on dates Sep 3, 2015
@anselmbradford
Copy link
Member Author

This is still an issue on the blog and elsewhere probably, but could likely be solved by copying the work done in #3204

@anselmbradford
Copy link
Member Author

Discussion in #3240 came to the likely conclusion that a wrapper around strftime would be what is needed to fix this.

See the "dates and date ranges" section in the content strategy doc linked via https://[GHE]/UX/Content-Strategy for background on date styles.

@virginiacc
Copy link
Contributor

@anselmbradford During the Careers project, we added some date formatting options (PR here) to strip leading zeros and use standard English month abbreviations. We restricted their application to the Careers section, but they could also be used (or adapted) for other parts of the site. They probably need some usage documentation, though...

@anselmbradford
Copy link
Member Author

Another example, https://www.consumerfinance.gov/coronavirus/mortgage-and-housing-assistance/ has Page last modified: July 06, 2021 at the bottom of the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants