Hi Vivian,
sDate = Request.Form("year") & "-" & request.form("month") & "-" &
Request.form("day")
sSQL = "insert into yourTable (theDate) values ('" & theDate & "')"
You'd want to validate the data or only give people dropdown boxes from
which to select so that they have to pick a valid date. Also, I do not know
that ' is the right delimiter for dates in MySQL.
Ray at work
"- - Vivian - - - - - -" <vi*********@ligbr.com.br> wrote in message
news:ee**************@tk2msftngp13.phx.gbl...
I am storing dates in a mySql database in the format yyyy-mm-dd.
Now, I have set up so that this field is insert by a form.
It isn't very user friendly to have to type yyyy-mm-dd, how can I set up
so that the user
can enter format dd/mm/yyyy and it will automatically insert into the
database as yyyy-mm-dd?
I am using Dreamweaver MX 2004 and ASP.
Thanks for any helps to me ....
Vivian