dbWriter Home
IP to Country Look up
Site Map

IP to Country DB

Free Databases:

ASP Code

ASP Links

VB Script functions:
Array
Case/Select
In String (inStr)
Replace

HTML code:
SELECT Color
SELECT Countries
SELECT Language
SELECT State/Province

SQL:

SQL Functions:
Delete leading Char
Get Browser
Long number from IP

Stored Procedures:

SQL Tricks:
Delete ALL duplicates
Delete dup records

MISC
IP Address Owner
MS SQL Server

Mortgage Calcs:
how much is my payment
Loan Amortization
Loan Calculator
Mortgage Calculator
Motrgage Pay Off

dbWriter License

Link to US

Links

Contact US
 

dbWriter.com compare SQL date(only) to ASP date(only) asp code

SQL stores the date and time in the DATETIME fields,  if you need to compare just the date to this field then here is the code to to strip the time off and just leave the date then compare it to an ASP data only varilble

<%
 CAST(FLOOR( CAST(YOURDATEFIELD AS FLOAT ) ) AS DATETIME ) = '" & FormatDateTime(sDate,vbshortdate) & "' "

-- OR HERE IS THE FULL SQL STATEMENT

sSQLString = "SELECT * FROM YOURTABLE WHERE "

sSQLString = sSQLString & "( CAST(FLOOR( CAST( YOUR_SQL_DATEFIELD AS FLOAT ) ) AS DATETIME ) = '"

sSQLString = sSQLString & "FormatDateTime(YOURASPDATE,vbshortdate) & "')"


%>


Partners/Links © 2005 - 2008 dbWriter.com All Rights Reserved
This site is protected by the dbWriter IPtoCountry MS/SQL database!!
Site map | Link to US
Contact Us

Sign up for PayPal and start accepting credit card payments instantly.