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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:37:49+00:00 2026-06-09T07:37:49+00:00

I Have a list of Strings with two different format e.g. 08:50 09:50 10:30

  • 0

I Have a list of Strings with two different format e.g.

08:50 09:50

10:30

06:40 07:30

03:50 05:50

03:32

i need to iterate on them and subtract the first to be 01:00 & the third to be 00:50 and the fourth to be 02:00 and calculate to get the total for all of them to be 17:52
N.B.
The list consist of thousands of records not these records only i need a generic solution please

  • 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-09T07:37:51+00:00Added an answer on June 9, 2026 at 7:37 am

    use a regexp for filtering between the different types?

    \d\d:\d\d \d\d:\d\d should be true for 08:50 09:50 but false for 10:30.

    There are more than enough tutorials on reg exps online.

    http://www.regexpal.com/ helps with builduing new expressions.

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

Sidebar

Related Questions

I have two arrays, each containing strings. The first array is a list of
I have an list of different Strings and I'd need to create a long
I have a list of strings that I need to pass to a process
Say I have a list of Strings with the elements: One, Two, Three, Four
Setup I have two List<T> 's. The data is un-normalized and from different sources
I have a list like this Dim emailList as new List(Of String) emailList.Add(one@domain.com) emailList.Add(two@domain.com)
Question is simple: I have two List List<String> columnsOld = DBUtils.GetColumns(db, TableName); List<String> columnsNew
I have two lists. Ex: List<string> expected = new List<string>(); expected.Add( a ); expected.Add(
Ok so I have two lists in C# List<Attribute> attributes = new List<Attribute>(); List<string>
I have list of strings like this FirstName-Lastname (separated by a dash -) 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.