Posted by Noozer on 08/01/05 14:00
"Travis Newbury" <TravisNewbury@hotmail.com> wrote in message
news:1122891441.540612.270390@g43g2000cwa.googlegroups.com...
> Noozer wrote:
> > I have a textbox on one of my forms that is used to accept a time from
the
> > user. I need to write this value to a database to trigger an event later
on.
> > What I'd like to know is...
> >
> > Are there any functions in javascript that can convert different time
> > formats to a known format (24 hour clock)... 5pm -> 17:00 or 5:00 ->
05:00,
> > etc. ???
>
> Wouldn't this be better done on the server?
>
> Google "javascript date object" With it you can create a data object
> based on the strng the visitor enters. once it is a "date" then yo can
> do what ever you like with it (based on the propertied an methods of
> the date object)
Thx... I decided to avoid the headache and imposed a selection (using
<SELECT>) instead. Much easier than trying to guess what the users trying to
enter.
Navigation:
[Reply to this message]
|