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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:15:47+00:00 2026-06-03T00:15:47+00:00

Possible Duplicate: Parse DateTime with timezone of form PST/CEST/UTC/etc How to Convert PDT Time

  • 0

Possible Duplicate:
Parse DateTime with timezone of form PST/CEST/UTC/etc
How to Convert PDT Time string to DateTime

I want to convert this value 05:41:33 Apr 23, 2012 PDT to datetime .

i am trying this but it is giving an error.

 DateTime dt = Convert.ToDateTime("05:41:33 Apr 23, 2012 PDT");

Please help me guys how we can do it in C#.

Thanks,Rajbir

  • 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-03T00:15:49+00:00Added an answer on June 3, 2026 at 12:15 am

    The PDT is not recognizable as a timezone by any of the parsing options for a DateTime in the BCL.

    If you convert it to -0700 before parse it will parse ok.

    string correctedTZ = "05:41:33 Apr 23, 2012 PDT".Replace("PDT", "-0700");
    DateTime dt = Convert.ToDateTime(correctedTZ);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Parse C# string to DateTime I am facing a problem while converting
Possible Duplicate: Whats the main difference between int.Parse() and Convert.ToInt32 Hi I want to
Possible Duplicate: How to parse JSON in JavaScript I have this JSON string: [{title:
Possible Duplicate: Parse query string into an array What's the fastest method , to
Possible Duplicate: How to parse a query string into a NameValueCollection in .NET I
Possible Duplicate: How to parse and process HTML/XML with PHP? I want to grab
Possible Duplicate: Parse JSON in Objective-C with SBJSON I have below JSON Response (String).
Possible Duplicate: Best practices to parse xml files? I have a xml string: <XML>
Possible Duplicate: Get query string values in JavaScript Parse query string in JavaScript http://www.example.org/search?q=example&another=test&again=more
Possible Duplicate: How to parse a string to an int in C++? I have

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.