Current location: Hot Scripts Forums » General Web Coding » JavaScript » js date


js date

Reply
  #1 (permalink)  
Old 11-25-04, 02:32 AM
franches franches is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Question js date

i have a 3 select box (year,month,day). the read only textbox contain the selected date. i am going to compare the date to a date in a database.
in my database i have 2004-11-23 & 2004-11-01. i selected 2004-11-23 and compare it if there is also same date in my database then it displayed "found" however, i selected 2004-11-1 from my select boxes when it was compared to my database it displayed "none". since the selected date from my selectboxes is considered or the data type is string and the data type in my database is date, there will be problem when comparing with day 1-9. is there someone who knows how to convert the string "2004-11-1" to date "2004-11-1".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-25-04, 09:42 AM
franches franches is offline
Newbie Coder
 
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
no need to answer my question. i've done it.thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie found a solution to a date problem. mickey_kamer Perl 4 05-09-07 06:54 AM
search form with date search newbieasp24 ASP 1 10-17-04 03:52 PM
Date andyX PHP 2 09-20-04 02:37 PM
Trouble inserting date into a field digitalje5u5 PHP 5 05-29-04 06:37 PM
Problem with date and form djavet PHP 3 05-02-04 01:37 AM


All times are GMT -5. The time now is 11:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.