Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8970075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:40:55+00:00 2026-06-15T17:40:55+00:00

What is the preferred string format for dates when it comes to REST APIs,

  • 0

What is the preferred string format for dates when it comes to REST APIs, for both request and response data?

I am considering ISO 8601 or RFC 1123:

 ISO 8601: 2008-02-01T09:00:22+05:00
 RFC 1123: Mon, 10 Dec 2012 14:25:01 GMT

What are the pro’s and con’s for each? Is there another alternative? What formats are other popular REST APIs using?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:40:56+00:00Added an answer on June 15, 2026 at 5:40 pm

    ISO8601 looks much more useful. From this document (containing a number of documented formats, usages and pros/cons):

    1. It is familiar to most developers
    2. It is unambiguous
    3. When sorted as a string of characters or as a string of octets they will be sorted as if they had been sorted as datetimes.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SQLite docs specifies that the preferred format for storing datetime values in the DB
In Java, apparently, String s = foo is preferred over String s = new
For the two string searching algorithms: KMP and suffix tree, which is preferred in
Python 2.6 defines str.format(…) , which, from Python 3.0, is preferred to the old
I have some simple data in XML format which I need to convert to
Possible Duplicate: Why is char[] preferred over string for passwords? I read somewhere that
There is String.Format function that is referred to in the documentation as the analog
can you help me to split a string (or preferred if possible, place a
What is the preferred way to retrieve large(approx: 50 MB) xml string from ASP.NET
This is working properly (from initial testing). Since method chaining is my preferred format,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.