D
David
Hi,
I have a form which is posting a user entered date to an asp page.
The date is then used in a SQL string.
The format of the date is received as dd/mm/yyyy, with the user typing
the '/' as well
how can I convert it to yyyy-mm-dd
----------------
I have tried this, but I think I need to strip out the '/' ??, as it is
not working
D1 = cdate(request.form("date"))
strDay = Day(D1)
strMonth = Month(D1)
strYear = Year(D1)
NewstrDate = strYear & "-" & strMonth & "-" & strDay
Appreciate your help, thanks so much
I have a form which is posting a user entered date to an asp page.
The date is then used in a SQL string.
The format of the date is received as dd/mm/yyyy, with the user typing
the '/' as well
how can I convert it to yyyy-mm-dd
----------------
I have tried this, but I think I need to strip out the '/' ??, as it is
not working
D1 = cdate(request.form("date"))
strDay = Day(D1)
strMonth = Month(D1)
strYear = Year(D1)
NewstrDate = strYear & "-" & strMonth & "-" & strDay
Appreciate your help, thanks so much