Home | Advertising Info1 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Monday, May 13, 2024  

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
SQL Queries
 PowerASP Code Help Area : SQL Queries
Subject Topic: date comparision Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mjunior
Newbie
Newbie
Avatar

Joined: November/06/2004
Location: Brazil
Online Status: Offline
Posts: 27
Posted: January/18/2006 at 7:25pm | IP Logged Quote mjunior

Guys,

I have a fail date comparision on my sql statement : month(search.fields("variable"))= m
that don't find the equivalent data.

The variable m, indicte the month number and I use it as reference to the array to print the month name:
month=array("","janeiro","fevereiro","março","abril", "maio","junho","julho","agosto","setembro","outubro","novemb ro","dezembro")
m=DatePart("m",(date()))

Anyone have some clue to help compare correctly the date in order to select all the data which the field matches with "m" on my db??

Already tried switch = to like, but works ony partialy, cause I have a mismatch on the following situations: 1,11,12 e 10

Also tested the comparision by printing the variables on a test page (they print exactly the same Ex. m=1 and month(search.fields("variable"))=1 )
Also tested the type of data by using the isnumeric test and both returned true.

__________________
mjunior(dumb)
Back to Top View mjunior's Profile Search for other posts by mjunior
 
mjunior
Newbie
Newbie
Avatar

Joined: November/06/2004
Location: Brazil
Online Status: Offline
Posts: 27
Posted: February/01/2006 at 7:05am | IP Logged Quote mjunior

Please any help!!

__________________
mjunior(dumb)
Back to Top View mjunior's Profile Search for other posts by mjunior
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com