date string-drop downs

This is a discussion on "date string-drop downs" within the Classic ASP section. This forum, and the thread "date string-drop downs are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 30th, 2004, 12:04
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
date string-drop downs

Hi can anyone help me???:mad:

I have a form to input details into the databse. I have date posted and end date in drop downs, daay month year. (works fine locally)

Due to sql it wont work just getting 0000000, I need to put the 3 values into one date string and then convert it to Year-Month-Day can anyone tell me how to do this the one date string is really getting me, please if you can help tell me were to put the code as i am very new to this.

thanks

  #2 (permalink)  
Old Jul 30th, 2004, 12:35
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Not sure if this will work but you could try:

idate = CDate(Request.Form("Year") & "-" & Request.Form("Month") & "-" & Request.Form("Day"))

Also, make sure the page which inserts the date into the database has the correct Session.LCID
  #3 (permalink)  
Old Aug 2nd, 2004, 13:28
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, what is the correct Session.LCID?? I dont know what this is (sorry very new to this)
  #4 (permalink)  
Old Aug 13th, 2004, 14:33
New Member
Join Date: Jul 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
I finaly got it to work, i used a calender pop up and converted the date to yyyy/mm/dd.
Closed Thread

Tags
date, stringdrop, downs

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get value from SQL string ? VegaLA Classic ASP 5 Jan 30th, 2008 07:39
Problems with my CSS Drop Downs In IE yinyang042 Web Page Design 5 Jan 10th, 2008 17:30
Drop down menus drop behind flash header theGAME71135 Flash & Multimedia Forum 3 Jan 10th, 2008 09:42
Cross Browser/Platform Issues with drop downs Maverick25r Web Page Design 2 Oct 4th, 2006 13:27
Changing date format in date picker AdRock JavaScript Forum 1 Aug 1st, 2006 17:16


All times are GMT. The time now is 04:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43