Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 SQL on Date, using Snitz date format
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CarKnee
Junior Member

USA
297 Posts

Posted - 13 December 2002 :  11:34:18  Show Profile  Visit CarKnee's Homepage
Since the M_date field in the FOrum_members table is a text field in the form of yyyymmddhhnnss is there any way to do something like this:

pastdate = Request("pastdate")
today = date()

SELECT * FROM Forum_members WHERE M_Date BETWEEN '" & pastdate & "' AND '" & today & "'"

I am really trying to get all members in between a certain date range, which will change, so I cant hard code the SQL.

Thanks,
Carknee

@tomic
Senior Member

USA
1790 Posts

Posted - 13 December 2002 :  11:58:39  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Assuming pastdate is in Snitz's date format:

SELECT * FROM Forum_members WHERE M_Date BETWEEN '" & pastdate & "' AND '" & DateToStr(today) & "'"

@tomic

SportsBettingAcumen.com
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 13 December 2002 :  12:08:43  Show Profile  Visit CarKnee's Homepage
Thanks,
do you know if it will work with the >, >=, <, <= functions as well?

CarKnee

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 December 2002 :  12:33:56  Show Profile  Send ruirib a Yahoo! Message
Yeah, relational operators can be used with strings.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 13 December 2002 :  14:05:04  Show Profile  Visit CarKnee's Homepage
Thanks!!!

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07