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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:53:49+00:00 2026-05-16T22:53:49+00:00

i receive this date: 9/20/2010 3:32:32 PM i need to convert to datetime. i

  • 0

i receive this date: 9/20/2010 3:32:32 PM

i need to convert to datetime.

i try:

DateTime DateFrom = DateTime.ParseExact("9/20/2010 3:32:32 PM", "dd/M/yyyy", CultureInfo.InvariantCulture);

but i get error: String was not recognized as a valid DateTime.

in my computer the region is: Hebrew (Israel) dd/MM/yyyy for short date and hh:mm for short time

how to fix it ?

thank’s in advance

  • 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-05-16T22:53:50+00:00Added an answer on May 16, 2026 at 10:53 pm

    How could it work man.You are converting into “dd/MM/yyyy ” & putting month as 20.In your
    question dd/M/yyyy is wrong.It will like dd/MM/yyyy.

    By default format is MM/DD/yyyy.

    simple way to do …….

    DateTime DateFrom = DateTime.Parse("9/20/2010 3:32:32 PM");
    

    if you want to provide a specific Format so use like that

    DateTime DateFrom = DateTime.ParseExact("20/09/2010 3:32:32 PM", "dd/MM/yyyy h:mm:ss tt", CultureInfo.InvariantCulture);
    

    I hope it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my C# program i receive date & time like this: DateTime.Now and i
I receive this message (see image below) when I try to edit in debugging.
This seems simple but I can't figure it out. I receive post data in
I am fetching a RSS, in which i receive the following Date stamp: 2010-05-10T06:11:14.000Z
I receive PatternSyntaxException when try to compile the following regex: bd.matches((a)?b(?(1)c|d)) this regex matches
I've a list of brazilian Holidays, so I got this: [0] {01/01/2010 00:00:00} System.DateTime
I receive this date format from facebook and google docs: 2011-02-25T10:55:25+0000 How can I
Normal way to make a new object: std::string date1 = 10/1/2010; Date d1(stringToChar(date1); But
This a service function GetTaskProgress: [WebMethod] public IList<OrderViewDTO> GetTaskProgress(DateTime xDATEx) { try { return
I receive this Run-Time Check Failure upon the return in the following code. I

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.