user insert date in form

I have a form where the user needs to insert a date. This date is then used by the program to determine an expiry date. My question is, how is the best method for the user to insert the date in the form, for it to be stored in a mysql date cell.

Thanks!

Answers


Use something like this for the front end:

http://jqueryui.com/demos/datepicker/

If you don't want to manipulate the date string in PHP, set the datepicker to work in YYYY-MM-DD format (which is used in the MySQL DATE type). Then either send your information off with Javascript or as a part of a form.


Need Your Help

Pushing git submodules correctly

git push git-submodules

I have the following repository layout:

Create junit report programmatically

java xml ant junit report

I would like to create junit report programmatically using ant. I've seen that this question has been asked before here: Ant:create JUnit report task programmatically and here: Creating JUnit report

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.