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 9321483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:51:49+00:00 2026-06-19T03:51:49+00:00

How to format a JSON date obtained from twitter to a C# DateTime ?

  • 0

How to format a JSON date obtained from twitter to a C# DateTime ?
Here is the format of the date I receive :

"Tue, 19 Feb 2013 13:06:17 +0000"

Can I do it with JSON.NET ?

  • 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-19T03:51:50+00:00Added an answer on June 19, 2026 at 3:51 am

    Solved with use of DateTime.ParseExact

    -> http://blog.kevinyu.org/2012/07/handling-json-in-net.html

    Link Update: the linked blog post is offline. It cached copy can still be referenced via the Way Back Machine Internet Archive.

    The common .NET code copied from the blog post is:

    public const string Const_TwitterDateTemplate = "ddd MMM dd HH:mm:ss +ffff yyyy";
    
    DateTime createdAt = DateTime.ParseExact((string)jo["created_at"], 
    Const_TwitterDateTemplate, new System.Globalization.CultureInfo("en-US"));
    

    where

    • variable jo is a JSON object representing the created_at date property, but effectively the Twitter date string goes into this parameter
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I receive a date in the format below from a json file. Im not
I got a small problem . I have this date format from .net json
Possible Duplicate: Converting .NET DateTime to JSON How can I convert a date value
I am taking a date from a JSON object in the format of 2012-12-31
I am getting a date from JSON file, and it is in string format.I
Possible Duplicate: How to format a JSON date? I have the following result from
Sourceforges JSON-lib (http://json-lib.sourceforge.net) produces a JSON date format like this: { date:10, day:5, hours:0,
There's a great thread here: How do I format a Microsoft JSON date? that
so, i need format JSON date from this format 9/30/2010 12:00:00 AM, it is
I'm generating json from a Rails app, and am filtering fields using the format.json

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.