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

WeekdayName() Syntax Error???

Status
Not open for further replies.

scripter73

Programmer
Apr 18, 2001
421
US
Hi,

On my website, I would like to display today's date. In other words the system date to be like:

Monday, 4/8/2002. (Preferably, Monday April 8, 2002).

Here's what I said:

<%= WeekdayName(Day(date) + 1) %>

Last week this worked fine. I was getting &quot;Monday, 4/8/2002&quot; Now I am receiving the error message, &quot;Invalid procedure call or argument 'WeekdayName'.

What am I doing wrong? I am new to Vbscript and hopefully someone can help me out.

Thanks in advance for your help,
scripter73
Change Your Thinking, Change Your Life.
 
Hi All,

I figured out myself. For anyone who's interested (and just starting to learn Vbscript syntax), the answer is:

FormatDateTime(Date,1) and that gives you,

Monday, April 08, 2002

Thanks to all who tried to help,
scripter73
Change Your Thinking, Change Your Life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top