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

  • Home
  • SEARCH
  • 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 3215860
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:13:37+00:00 2026-05-17T15:13:37+00:00

I have string like this:0:385 (first number is seconds, next numbers are milliseconds), I

  • 0

I have string like this:”0:385″ (first number is seconds, next numbers are milliseconds), I want to use in datagridview with sorting like numbers (not like strings) so I am trying to make DateTime from string but I am not sure how exactly do this. I know I should use method Parse (or ParseExact) but when I tried it it says “String was not recognized as a valid DateTime.”. I read some articles about that but I am not sure how exactly use IFormatProvider and next arguments.
Thanks for help

  • 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-17T15:13:38+00:00Added an answer on May 17, 2026 at 3:13 pm

    You could use the following: TimeSpan.Parse("0:0:0.365")

    But you must format the string like this: [d.]hh:mm:ss[.ff] (The day [d] and fractional seconds [ff] are optional)

    See TimeSpan.Parse Method on MSDN

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

Sidebar

Related Questions

I have a string of test like this: <customtag>hey</customtag> I want to use a
I have string like this /c SomeText\MoreText Some Text\More Text\Lol SomeText I want to
I have string like this first#second, and I wonder how to get second part
I have string looking like this: 'Toy Story..(II) (1995)' I want to split the
I have a string like this <name>sekar</name> . I want to split this string
I have a string like this <name> , I want to chop off the
I have a string like this yJdz:jkj8h:jkhd::hjkjh I want to split it using colon
i have string like this $string = 'aaaaaa, bbbbbb, cccccc, '; and i want
suppose I have string like this str1ng for test now i want to check
I have a string like this: String string ='{{INPUT FILE, NUMBER OF RECORDS},{Item File,

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.