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

Date time string format sample #38172

Closed
manngo opened this issue Dec 2, 2024 · 1 comment · Fixed by #38175
Closed

Date time string format sample #38172

manngo opened this issue Dec 2, 2024 · 1 comment · Fixed by #38175
Labels
Content:JS JavaScript docs

Comments

@manngo
Copy link
Contributor

manngo commented Dec 2, 2024

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse

What specific section or headline is this issue about?

Try it

What information was incorrect, unhelpful, or incomplete?

The sample includes an expression like Date.parse('01 Jan 1970 00:00:00 GMT'). The previous paragraph states that only the date time string format is specifically supported, but the sample doesn’t include such a string.

What did you expect to see?

At least one sample with the official format. For example:

//	Date Time String Format:
	const dtsfStandard = Date.parse('1995-12-04T00:12:00Z');
	console.log(dtsfStandard)

//	Date Time String Format with spaces:
	const dtsfSpaces = Date.parse('1995 12 04 00:12:00Z');
	console.log(dtsfSpaces)

//	Other possible formats:
	

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

I would be more than happy to fix this myself if it seems appropriate.

MDN metadata

Page report details
@manngo manngo added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Dec 2, 2024
@github-actions github-actions bot added the Content:JS JavaScript docs label Dec 2, 2024
@Josh-Cena Josh-Cena transferred this issue from mdn/content Dec 2, 2024
@pragyamishra56
Copy link

/assign

@Josh-Cena Josh-Cena transferred this issue from mdn/interactive-examples Feb 15, 2025
@Josh-Cena Josh-Cena removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants