Reply to Re: Javascript help - User input time -> date/time value for MS Access database

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация