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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:56:53+00:00 2026-06-10T07:56:53+00:00

What format is this date time in PHP 2012-08-16T21:14:03.447? How can I convert it

  • 0

What format is this date time in PHP 2012-08-16T21:14:03.447?
How can I convert it to Timestamp and vice versa?

I have a timestamp format 1345108443790, how to get the Date time ?

For the people who downvoted/close request this question:

I was getting weird result when trying to convert 1345108443790 (I got this value from third-party website) to DateTime, but after many attempts and @Truth’s suggestion got to know that after trimming last 3 digits (may be microseconds?) and then passing it in function actually solved it and is giving the right result. Something to learn here, one click downvoters!

  • 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-10T07:56:55+00:00Added an answer on June 10, 2026 at 7:56 am

    This is similar to ISO 8601 (Timezone is missing though), a.k.a. the standard for date/time stamps.

    Use strtotime() it parses it correctly. You may want to consider DateTime objects as well.

    Working example:

    $ts = strtotime("2012-08-16T21:14:03.447");
    echo date("H:i:s Y-m-d", $ts);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i replace date/time in this format 'Fri Mar 23 15:21:08 2012' with
How could i convert this string 03/16/2012 03:22PMusing php to store in datetime format
I want the date&time to be in this format. For example 2012/3/21 23:47:01 2011/11/23
Possible Duplicate: PHP/MySQL - Format date/time I have input field (name:day1 and varchar) to
I just need your help really much. I have this date() format: <?php date(j.
how can i make date format from this : 1138618081 ( with php function
I am trying to convert a date/time string in this format YYYY/MM/DD/HH:MM:SS to a
I'm using this to convert date time strings to a unix timestamp: str(int(time.mktime(time.strptime(date,%d %b
How do I get the system date and time in this format: $systime=12/january/2010 10.30
How do i format a insert statement with date time for this collation... Currently:

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.