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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:51:35+00:00 2026-06-09T10:51:35+00:00

in my web application, user has to enter a time and select a date.so

  • 0

in my web application, user has to enter a time and select a date.so i want to save that time and date in globle time and date.when it get it should appear in user’s country time.so simply the requirement is to convert a string into globl time and globle date when saving and globle time and date convert into a string when retrieving.so please let me know if someone know the PHP functions for this.thank you!!!

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

    PHP dates and times always work on server side.

    Did you already consider to use the timestamp and the date_default_timezone_set() function to get the “global” datetime?

    php > echo time();
    1344236016
    php > $timestamp=1344236016;
    php > echo date('c',$timestamp);
    2012-08-06T08:53:36+02:00
    php > date_default_timezone_set('GMT');
    php > echo date('c',$timestamp);
    2012-08-06T06:53:36+00:00
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a web application that will have many users. Each user has
I'm creating a web application for work where the user has to enter the
We are developing a web application where user has to input a One Time
I want to build a WPF web application that could installed on a user's
I want to build a silverlight web application that could installed on a user's
I have a web application in which a user has to upload images to
We developed an application to edit the web.config settings. The user has to locate
Summary: web page has a few fields to allow the user to enter payments.
I've got a web application that has a page full of batch files which
My web application has a login page that submits authentication credentials via an AJAX

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.