Getting Day of Week

J

James

Is there a built in ASP function for getting the day of the week?
Ultimately I'm trying to come up with the output:

Thursday, September 23, 2004.
 
A

Aaron [SQL Server MVP]

There are no such functions in ASP, since ASP is not a language. Are you
using VBScript? Have you looked at VBScript's DATEPART() and DATENAME()
functions?
 
A

Aaron [SQL Server MVP]

There are no such functions in ASP, since ASP is not a language. Are you
using VBScript? Have you looked at VBScript's DATEPART() and DATENAME()
functions?
 
J

James

Yup, sure am using VBScript. Sorry for asking for a function in ASP...what
a fool I've made of myself. Anyway, I've been able to create a solution
using DatePart, but it seems far longer than it needs to be. Never heard of
the DateName() function in VBScript, only in SQL...but I'll look into that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top