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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying text based on current date 1

Status
Not open for further replies.

RandyBosma

Programmer
Mar 28, 2003
7
US
I would like to display a paragraph of text on a web page based on the current date, for instance, a list of upcoming meetings, but only those meetings in the future. I suspect the answer is a javascript script, but I have not been able to figure out the syntax.

Here's how I might do it in a famous database language:
IF DATE()-{^2003-09-11} > 0
? "This should be displayed before September 11"
ENDIF

TIA,
RandyB
 
The language is Microsoft's Visual FoxPro, but the scrap of code I used four an example would be valid in most any xBase language back to dBase2.

Thanks for the link.
 
alright......great, I am glad it lead you to your answer(s).
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top