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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:24:17+00:00 2026-06-03T17:24:17+00:00

I will work with third party API. They accept a date pattern like: 2012-02-15T17:34:37.937-0600

  • 0

I will work with third party API. They accept a date pattern like:

2012-02-15T17:34:37.937-0600

I know the pattern should be match like

yyyy-MM-ddTHH:mm:ss.s

But I am not sure how to represent the last “-0600” timezone? I think the standard timezone is “-06:00”, anyone knows how to get rid of the “:” in the date pattern?

Thanks.

  • 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-03T17:24:18+00:00Added an answer on June 3, 2026 at 5:24 pm

    maybe you want “Z” ?

    see http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html:

    • ‘z’ gives you “Pacific Standard Time; PST; GMT-08:00”
    • ‘Z’ gives you “-0800”

    This code:

    final SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SZ");
    

    produces:

    2012-05-11T12:21:57.598+1000

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

Sidebar

Related Questions

I'm creating a PHP library for a third-party site's REST API. The library will
I like to be sure that everything will work just by copying the contents
I'm writing a messaging layer that should handle communication with a third party API.
I have an ASP.NET 4.0 web application which uses a third-party API for external
As part of a large automation process, we are calling a third-party API that
I've Goog'd but I can't find any third party library that will let you
I want to install some great third-party libraries on Mac OS X which will
As part of our object CRUD work flow we need to call third party
I'm writing applications that interoperate with a third-party application. This application exposes an API
I work for company that links out to partners through a third party website

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.