Andrew Kim
Andrew Kim

Reputation: 3335

best way to pass dates as query params

What is the "industry standard" to format a date as a query param?

My initial thoughts are to just use the HTML input format for dates: YYYY-MM-DD as a string.

Upvotes: 2

Views: 6414

Answers (1)

ibra
ibra

Reputation: 606

YYYY-MM-DD is exactly the recommended date format by ISO 8601.

For mor information see ISO 8601 Date and time format

Upvotes: 4

Related Questions