Current location: Hot Scripts Forums » Programming Languages » ASP » hey need comparison of dates for reminder


hey need comparison of dates for reminder

Reply
  #1 (permalink)  
Old 03-09-04, 05:03 AM
traceMe traceMe is offline
Newbie Coder
 
Join Date: Oct 2003
Location: india(mumbai)
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
hey need comparison of dates for reminder

iam storing birthdates of people as datetime format in the db and now i need to compare the date and get a list that shows me one week before the birthdate
as in my current query is :
rs.open "select * from nm_feedback where not month(vDob)>'"&month(date)&"' order by "&tbl_name&order,objConn,0,2

but then this fetches me with all the dates in db thats greater than current month now the real scene comes in
i want a list that shows me list of birthdays 1 week or one month in the sence if a birth day is on 1apr then i should see it on say 23march prior to the particular birthday. i could have got it if the year was same but the scene is year is lesser than current date year
i have been comparing the days with current date so i guess its a prop

thx for help
iam online in msn!
Reply With Quote
  #2 (permalink)  
Old 03-11-04, 08:39 AM
jake jake is offline
Newbie Coder
 
Join Date: Mar 2004
Location: UK
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Have you tried using the DateDiff() function ?

e.g.

rs.open "SELECT * FROM nm_feedback where (DATEDIFF("ww",now(),vDob) MOD 52) = 1 ORDER BY " &tbl_name&order,objConn,0,2


Quote:
Originally Posted by traceMe
iam storing birthdates of people as datetime format in the db and now i need to compare the date and get a list that shows me one week before the birthdate
as in my current query is :
rs.open "select * from nm_feedback where not month(vDob)>'"&month(date)&"' order by "&tbl_name&order,objConn,0,2

but then this fetches me with all the dates in db thats greater than current month now the real scene comes in
i want a list that shows me list of birthdays 1 week or one month in the sence if a birth day is on 1apr then i should see it on say 23march prior to the particular birthday. i could have got it if the year was same but the scene is year is lesser than current date year
i have been comparing the days with current date so i guess its a prop

thx for help
iam online in msn!
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
registration of prodid,name,and 2 dates pr. month ropey PHP 3 01-31-04 01:12 PM
Price Comparison Script cpwalton Script Requests 0 01-21-04 03:22 PM
how to compare dates in MS Access skchakri ASP 2 10-12-03 06:13 PM
Looking for quote to program XML price comparison site macker123 Job Offers & Assistance 0 09-26-03 09:10 PM
Price Comparison Application... jag6945 General HotScripts Site Discussion 1 06-20-03 02:29 AM


All times are GMT -5. The time now is 04:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.