473,386 Members | 1,815 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,386 software developers and data experts.

Calling Day Of Month

Is there a way to call the day of the month in the date object? (When I try
to do this, an error box says it isn't supported.)
Jul 23 '05 #1
9 1214
Sorry; I meant to say the DAY of the week...
Jul 23 '05 #2

Code
-------------------

var toDay = new Date();
alert(toDay.getDate);

-------------------
Should display an integer between and including 1 to 31..

--
stymi
-----------------------------------------------------------------------
stymie's Profile: http://www.highdots.com/forums/member.php?userid=3
View this thread: http://www.highdots.com/forums/showthread.php?t=7232

Jul 23 '05 #3
ommadawn wrote:
Sorry; I meant to say the DAY of the week...


["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date().getDay()];

Mick
Jul 23 '05 #4
stymie wrote:
Code:
--------------------

var toDay = new Date();
alert(toDay.getDate);

--------------------
Should display an integer between and including 1 to 31...


For me it displays "(Internal function)".

I think what you meant was:

alert(toDay.getDate());

-----------------------^^
--
Fred
Jul 23 '05 #5
First two didn't work for me; the second one did.
I used nowDate.getDate which worked for me.

What I really meant to post in the first place was: 'how do you call the
HOUR'?
Jul 23 '05 #6
ommadawn wrote on 17 apr 2005 in comp.lang.javascript:
First two didn't work for me; the second one did.
I used nowDate.getDate which worked for me.

What I really meant to post in the first place was: 'how do you call the
HOUR'?


This is usenet, not email.

If you do not quote relevant part of the posting you are reacting on,
we don't have the faintest idea where you are talking about.

Please comply with netiquette.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #7
Lee
ommadawn said:

First two didn't work for me; the second one did.
I used nowDate.getDate which worked for me.

What I really meant to post in the first place was: 'how do you call the
HOUR'?


Think before you type. What is it that you want?

You can't "call the HOUR". You can call a method that returns the current
hour, but at this point,I have to assume that if I answer that question,
you'll come back with something like "What I really meant to post was...".

Show us what you've tried and explain why you tried that, and somebody
will probably be happy to show you what you should use.

Jul 23 '05 #8
JRS: In article <kb*****************@newsread3.news.atl.earthlink. net>,
dated Sat, 16 Apr 2005 20:02:24, seen in news:comp.lang.javascript,
ommadawn <om********@earthlink.net> posted :
Sorry; I meant to say the DAY of the week...


See via sig below, and FAQ. Note that javascript .getDay() numbers as 0
that day-of-week which by international agreement (ISO 8601) is really
number 7.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #9

Thanks Fred,
I stand corrected...

In my haste I made a waste...
In ommadawn's _HOUR_ of need...

PUN intended...

stymi

--
stymi
-----------------------------------------------------------------------
stymie's Profile: http://www.highdots.com/forums/member.php?userid=3
View this thread: http://www.highdots.com/forums/showthread.php?t=7232

Jul 23 '05 #10

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

Similar topics

2
by: N. Graves | last post by:
Hey, I need to have a template ASP page that can dynamically include another file depending on that I call in the address. I have yet to make this work. Here is a sample of what I thought...
9
by: Giulio | last post by:
why definition of two constructors like these is not possible in c++??? ----------------------- date::date(const int d, const int m, const int y, const int ora, const int mi, const int se){...
3
by: Alec | last post by:
Hi All, I want to create a report listing all the people's birthdays that are in the current month, in other words, if I clicked to open the report today, it would show everyone who's birthday...
2
by: SS | last post by:
Hi I have a dll with the following signature - I would like to know How I can call this from CSharp,pls This is a test app from C - and it works - but from CSharp??? #include <fstream.h>...
0
by: teddysnips | last post by:
I have Search form that allows users to retrieve records into a DataGrid. There are two search criteria - a Month and a Year, which are selected from drop-down lists. There is a server-side...
0
by: teddysnips | last post by:
I have Search form that allows users to retrieve records into a DataGrid. There are two search criteria - a Month and a Year, which are selected from drop-down lists. There is a server-side...
4
by: sck10 | last post by:
Hello, I am trying to get the Month from the following using "switch" in my App_Code file. The error that I am getting is: An object reference is required for the nonstatic field, method, or...
1
by: Memphis Steve | last post by:
Is it possible to combine multiple javascipts into one file and then call that file from a linked URL in the head section of an XHTML file? Here are the two scripts I want to use with the...
7
by: owuraku | last post by:
Hi fellas I have a list of Databases named to reflect the current working month and year. Each month a copy of the past month's database is saved and the name is changed to the present month. For...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.