Skip to main content
Inspiring
August 10, 2010
Question

time validation for hh:mm:ss

  • August 10, 2010
  • 1 reply
  • 1583 views

hi,

is there the way of any one knows what is the expression for validation the time with format of HH:MM:SS?

Thanks

KT

This topic has been closed for replies.

1 reply

Inspiring
August 10, 2010

Is this a form field?  If so, why are you making the user enter seconds?

Inspiring
March 17, 2011

This works for validating...

<cfinput type="Text" name="CallTime" required="Yes" message="Call Time - (HH:MM:SS)" size=5 validate="time">

With one glitch - it accepts more than 59 seconds for validation - but then errors on database insert for odbc time...

Only for seconds though...

Example...

22:33:44 works fine...

25:33:44 errors on validation

22:66:44 errors on validation

22:33:66 accepts validations - but ODBC Database errors...

It should not validate...

Anyone know what is up with that???

Thanx,

Merle

Inspiring
March 17, 2011

I can replicate this on CF8.0.1... I don't have CF9 on hand to test it on that.

If you're seeing it on CF9, it might be worth raising a bug: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html

If you post the URl to the bug back here, I'll go vote for it too.

--

Adam