dcass
asked on
Need Calendar field in PHP to select date
I'm sure it's here somewhere but I am out of time. I am a programmer but fairly new to PHP / javascript.
I need code for a (read only) date input field with a small Calendar image that when clicked, displays a calendar with the current date selected. When the user selects a date, it fills in the field.
Then I need how to change that date from MM/DD/YY to YYYY/MM/DD for output to the database.
The simpler the better.
This should be really easy for you pros!
I need code for a (read only) date input field with a small Calendar image that when clicked, displays a calendar with the current date selected. When the user selects a date, it fills in the field.
Then I need how to change that date from MM/DD/YY to YYYY/MM/DD for output to the database.
The simpler the better.
This should be really easy for you pros!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is one that I have used: http://www.dynamicdrive.com/dynamicindex6/popcalendar2.htm
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I agree that the jQuery date picker is the best. You see it everywhere.
As far as learning how to handle date format conversions, this article will be helpful. The PHP functions date() and strtotime() work well together.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html
As far as learning how to handle date format conversions, this article will be helpful. The PHP functions date() and strtotime() work well together.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html