Hi,
If you are looking for help to convert the user's entry to the required format in javascript then you can do this:
Call this function on submit which will convert the input in the form "1212" to "12:12" and put it into a hidden variable. You can use the hidden variable to insert into the database.
<script language="javascript">
function fnSubmit()
{
stest=document.frmTest.txtTime.value;
stest1=stest.substring(0,2);
stest2=stest.substring(2,4);
stime=stest1 + ":" + stest2;
document.frmTest.htxtTime.value=stime;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.