473,411 Members | 2,230 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Getting Day of Week

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.
Jul 19 '05 #1
4 3869
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?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James" <cp******@aol.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
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.

Jul 19 '05 #2
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?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James" <cp******@aol.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
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.

Jul 19 '05 #3
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.
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
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?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James" <cp******@aol.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
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.


Jul 19 '05 #4
Sorry, my bad. Look at the WeekdayName() and Weekday() functions.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James" <cp******@aol.com> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
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.

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
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?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"James" <cp******@aol.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
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.



Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Morgan | last post by:
Hi Hopefully the subject says it all. Given a weekday, (1 to 7) and an occurrence with in a month, (1 to 4), I need to ascertain the date on which it first occurs in any given month and year. ...
11
by: M P | last post by:
I can easily get the current date by using Date(), how about WorkWeek? Mark
3
by: Astra | last post by:
Hi All I'm really stuck on this one so would appreciate any help you can give. In essence, I have 1 SQL 2000 table with rows of data logging stock movement. To differenciate between a stock...
7
by: Shuffs | last post by:
Could someone, anyone please tell me what I need to amend, to get this function to take Sunday as the first day of the week? I amended the Weekday parts to vbSunday (in my code, not the code...
9
by: Ray | last post by:
I need to convert the normal calendar to show the week no., the period no. and the financial year. The financial year format is as follows:- Date start: 2 May, 2005 7 days a week, 4 weeks a...
3
by: Tim Chase | last post by:
I've been trying to come up with a good algorithm for determining the starting and ending dates given the week number (as defined by the strftime("%W") function). My preference would be for a...
4
by: Morten Snedker | last post by:
In Denmark the 1/1/2009 belongs to week 53 of year 2008. The code below, as I believe should apply to Danish settings, returns 1, which is wrong. Am I having a wrong approach? '--code...
10
by: patsman77 | last post by:
I hope this is the right spot to post this.... I am working on a form to pull the information from the database. I am trying to use arrays, but I only get one record to come back and it is...
1
by: Frank Rizzo | last post by:
I need to get a Monday of the current week based on any date. I got the function below working fine, but it feels hacky. And I can't find anything in the framework. Is there a more elegant...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.