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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:50:41+00:00 2026-06-11T19:50:41+00:00

I am using datePicker for date selection in the front end. I have shown

  • 0

I am using datePicker for date selection in the front end. I have shown date like this:

September,30 2012

But when I receive it in PHP and try to convert it into date format, it generates wrong date.

$var = date('Y-m-d', strtotime('September,30 2012'));

The above gives me 1970/01/01.

  • 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-11T19:50:42+00:00Added an answer on June 11, 2026 at 7:50 pm

    Just remove the , from the datepicker’s output..And it’ll be fine

    $var = date('Y-m-d', strtotime('September 30 2012'));
    

    gives you 2012-09-30

    And to remove comma,use

    $daf = 'September 30 2012';
    echo str_replace(',','',$daf); // gives September 30 2012
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery datepicker where I have two textboxes (start date / end
I tried using date/time, time, but it doesn't help. Exception Details: System.Web.HttpException: DataBinding: 'DatePickerControl.DatePicker'
I'm using the Toolkit's Datepicker as above but I'd like to restrict it to
I have a date picker which is shown using an action sheet. I want
I am using datepicker with php and jQuery to show events however this script
I'm using a jQuery datepicker to select an applicant's date of birth, but the
I am currently using this JQuery datepicker from http://www.eyecon.ro/datepicker/ . I have looked through
Im using the Datepicker control to get a date and display it in a
I am using bootstrap-datepicker and get a value of 1339698600000 for the selected date
I am using the datepicker which renders incorrectly on my webpage. The date rows

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.