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 #2871

Open
manngo opened this issue Dec 2, 2024 · 1 comment
Open

Date time string format sample #2871

manngo opened this issue Dec 2, 2024 · 1 comment
Labels
Content:JS issues related to JavaScript examples. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@manngo
Copy link

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 issues related to JavaScript examples. label Dec 2, 2024
@Josh-Cena Josh-Cena transferred this issue from mdn/content Dec 2, 2024
@pragyamishra56
Copy link

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS issues related to JavaScript examples. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

2 participants