i want to insert it in a database by taking from form
KNR
First you are in DaniWeb dont ever ask for any code. Ask your doubts.
Now for your problem
If you wanna user to choose a date then use following
Download DataTimePicker.js a javascript file which on ckick of a link it will allow you to choose date. After that you can submit your form which holds your date value. Now you can easily insert that date to database.
Check given Url
http://www.javascriptkit.com/script/...calendar.shtml
else
you wanna current date of the system you can use Date function of php.
hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma