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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:33:44+00:00 2026-05-15T22:33:44+00:00

can anyone advise how i would convert a date like Tuesday, 22 June, 2010

  • 0

can anyone advise how i would convert a date like “Tuesday, 22 June, 2010 00:00” to a unix timestamp using strtotime()? I need to also store the hours and minutes and it’s not clear if is best done using strtotime. Thanks for any help!

  • 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-15T22:33:45+00:00Added an answer on May 15, 2026 at 10:33 pm

    Due to the second ,, strtotime() will currently not understand your date/time format (remove it and it will work properly).

    If you have a static format for the date, using strptime() or DateTime::createFromFormat() are more reliable, and will allow other non-datetime strings in the date to be present as long as you’ve defined them.

    echo DateTime::createFromFormat("l, j F, Y H:i","Tuesday, 22 June, 2010 00:00")->format("c");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Would anyone please advise how in jade for nodejs I can truncate a string
Can anyone advise on how to convert a timespan or int to an ISO8601
Can anyone advise why this line of code would not compile? It generates CS1660
can anyone advise how do i convert the below html table into div? I
I would like to convert an ARIMA model developed in R using the forecast
Can anyone advise on a simple way of converting a csv string to an
Can anyone advise on the appropriate SAS informat to read in a datetime (dd/mm/yyyy
Can anyone please advise where i'm going wrong with the following? I want the
Can anyone please advise me if there will be any problems changing the wordpress
Can anyone advise if its possible to pass data via jQuery to an ASP.NET

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.