JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2004, 11:36 AM
Faiyth Faiyth is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 1999
Posts: 16 Faiyth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Date Validator/fixer

Alright you helped me with the time validator and the time fixer. Now I need to do the same thing with the date. Is there a easy way to do this? I know one text field is not the way to go, but it is the way everyone decided they wanted it.

Here's my psuedo code:
1. user enters a date in a text field (one text field) in the format of 1-01-04, 1/01/04, 1/1/2004, etc.
2. Javascript makes sure it's a valid date
3. If it's a valid date: javascript makes sure it's in mm-dd-yyyy format (no /'s).
3a. If it's not in that format.. it puts it in that format.
4. If it's not a valid date, it says, hey this ain't a valid date..

I got the validator, so it checks to make sure it's actually a date. I need help with the turn it into that format peice.

Reply With Quote
  #2  
Old June 15th, 2004, 11:52 AM
jacktasia jacktasia is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Location: Lawrence, Kansas [KU]
Posts: 1,559 jacktasia User rank is Corporal (100 - 500 Reputation Level)jacktasia User rank is Corporal (100 - 500 Reputation Level)jacktasia User rank is Corporal (100 - 500 Reputation Level)jacktasia User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 14 h 10 m 18 sec
Reputation Power: 14
Send a message via AIM to jacktasia
Quote:
Originally Posted by Faiyth
I got the validator, so it checks to make sure it's actually a date. I need help with the turn it into that format peice.


well, post that code then and i or someone else will help you try to do the rest.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Date Validator/fixer

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap