Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A DATE greater than todays DATE() ?????

Status
Not open for further replies.

mdang

Technical User
Mar 2, 2004
3
US
Hi Everybody,

Is it possible to have an integer that is converted into a DATE (using formatdatetime) and have it do something like this

if DATE >= Date() then ------------ is doen't work

?????

 
My guess is that DATE (no matter case) is a reserved keyword... This is not a bug - it's an undocumented feature...
;-)
 
DATE is a reservedkeyword. Thats the great thing about Vbscript and VB. Case (lower&Upper) does not matter. For a example run this little script
<html>
<head>
<script language=&quot;VBscript&quot;>

dim var
var = date
alert var

</script>
</head>
</html> I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top