navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

date sensitive display

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> date sensitive display
Page: [1]
 
barking mad

 

Posts: 278
Joined: 12/6/2002
From: Out in the sticks, UK
Status: offline

 
date sensitive display - 12/19/2007 16:24:06   
hi, any ideas on the following?

i want to do the following

<% if today() < 27/12/2007 then 
response.write "merry christmas"
else
response.write "happy new year"
end if


however no joy! happy new year is returned where today is the 19th dec

response.write today() returns 12/19/2007



_____________________________

The more I ask, the more I learn, the more I' m confused, therefore the more I ask ...
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: date sensitive display - 12/19/2007 17:28:44   
<% if date() < "12/27/2007" then
response.write "merry christmas"
else
response.write "happy new year"
end if%>

That should work for machines on US time. Dunno' 'bout the other date formats.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to barking mad)
barking mad

 

Posts: 278
Joined: 12/6/2002
From: Out in the sticks, UK
Status: offline

 
RE: date sensitive display - 12/19/2007 17:56:29   
aha its those apostrophes again! thanks for that

merry christmas

_____________________________

The more I ask, the more I learn, the more I' m confused, therefore the more I ask ...

(in reply to barking mad)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> date sensitive display
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts