Skip to content

Add support for parsing date #43

@Zhu-jiatong

Description

@Zhu-jiatong

An example of such a scenario is when users need to synchronise time between their device and the web server.
The JavaScript code below is used to send the client's date & time to the server.

const d = new Date();
let text = d.toJSON();
// then post text to the server.

The JSON string posted would be formatted like this:
2022-11-08T02:49:50.267Z

Currently, it appears that this library is incapable of parsing this JSON format. Thus, I propose the addition of this functionality.

Thank you.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions