Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

format time

Status
Not open for further replies.

reta

Technical User
Dec 23, 2004
51
AU
hi
i currently allow the users to enter in a time value of hh:mm and i have a javascript that validates the data.

The problem is i would like to input this data into sql database but an error comes up by not enabling the ':' to be inputted into by smalldatetime field. So i would like to format this data to go into that field before it enters into the db.
Thanks
reta
 
What is your code? What is the error you are getting? How does the input look when the user enters data?

Jim
 
Also, you can't just enter a time, you will need a date as well. You can use some dummy date if you need too.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top