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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:08:07+00:00 2026-05-25T12:08:07+00:00

I am getting a time/duration from a .NET web service in this format: PT12H30M

  • 0

I am getting a time/duration from a .NET web service in this format: PT12H30M

How can this be handled?

  • 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-25T12:08:08+00:00Added an answer on May 25, 2026 at 12:08 pm

    When you define the format string for parsing a date you use the UTS #35 Date Format Patterns to define what the incoming data looks like. PT looks like a legitimate timezone abbreviation. You will want to fiddle with this depending on whether the minutes and hours are zero-padded or not.

    NSString *dateString = @"PT12H30M";
    dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"ZZhh'H'mm'M'"];
    NSDate date = [dateFormatter stringFromDate:dateString];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have a web service that returns this JSON: [{other_user:54,distance:1 ft,duration:1 min},{other_user:55,distance:2 ft,duration:5
I am getting time from server it's like this 12:00PM-3:00PM,7:00PM-10:30PM This time in 12
I am getting the time duration correctly for 24 hrs format but for 12
In Asp.Net, what control is more suitable for getting time (hh:mm) from user and
I am getting time out from using JsonpRequestBuilder. The entry point code goes like
I'm having a hard time getting my head around this, and Google just isn't
this is my first post on this website, but I'm all the time getting
Take this function getting time as a double using clock_gettime: // return current time
I am trying to solve this problem in Haskell but getting time limit exceed.
i trying to convert time in string format to minutes. i can use substring

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.