Guest Saima01 Posted December 13, 2005 Share Posted December 13, 2005 hi....i have designed a form with some date fields on it. The format that i've defined for date is "dd-mon-yyyy". Now what i want to do is whenever the form is submitted, the values that are to be stored in the database should be of "yyyy/mm/dd" format. i just browsed the web for a solution but couldn't get one till now. Any ideas of how can i do it? Link to comment Share on other sites More sharing options...
sorex Posted December 14, 2005 Share Posted December 14, 2005 I guess you'll make your life easier with the dd-mm-yyyy format, then it's justfdate=request("formdate")mydate=right(fdate,4)&"/"&mid(fdate,4,3)&"/"&left(fdate,2)or split it up which is even better en more secure Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now