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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:05:40+00:00 2026-06-01T05:05:40+00:00

I have an issue using xsd dataTime with regard to integrating a web client

  • 0

I have an issue using xsd dataTime with regard to integrating a web client written in PHP using LAMP technology with a web service written in C# using WCF technology. The issue has to do with the fact that the two technologies use different, but valid, formats for dateTime.

This issue has been previously posted under Gmt php or UTC C# equivalence through SOAP , but there is no accepted answer.

My issue is that I must convert from the C# Z time format as a string to the alternative UTC dateTime format as a string that can then easily be converted to a PHP DateTime object. I’m hoping someone has a code snippet written in PHP that will do the string conversion. I find it hard to believe that such a code snippet is not readily available given the prevalence of web services an the fact that both WCF and LAMP are popular technologies.

An example of the conversion needed is when given an input, such as ‘2012-02-04T13:00:00Z’, it will produce the correct UTC output, specifically ‘2012-02-05T00:00:00+11:00’. For details on how this conversion is done, see the accepted answer for xml schema Timezone .

Does anyone have a pointer to a PHP code snippet (or alternatively another language) for the Z time to UTC conversion of a string dateTime?

  • 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-01T05:05:41+00:00Added an answer on June 1, 2026 at 5:05 am

    This should be trivial if you set your timezone correctly and format the date to your needs:

    $ php -a
    php > date_default_timezone_set('Asia/Tokyo');
    php > echo date('Y-m-d\TH:i:sP', strtotime('2012-02-04T13:00:00Z'));
    2012-02-04T22:00:00+09:00
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an issue using the PEAR libraries on Windows from PHP . Pear
I have a strange issue: I am using SPContext.Current.Web in a .aspx page, but
I have an issue going on here. I am using PHP to get values
I have an issue of using event.srcElement . I have written an event handler
I have an .net 2.0 C# client app that has a web service reference
I have been trying to connect to some web services using WCF but I
I have an issue using jquerys selectors when it comes to a page I
I have an issue with using AWK to simply remove a field from a
I have the following issue using java 1.4 I try to display a very
I have an odd issue while using FlashCS4. I have a textfield that, when

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.