JavaScript Date Object Functions

Java Script Code Examples


Date.getDay

Description
Returns an integer set to the date's object day in the week.
0 for Sunday
1 for Monday
2 for Tuesday
3 for Wednesday
4 for Thursday
5 for Friday
6 for Saturday

Example Code
<SCRIPT LANGUAGE="JavaScript">
<!--
the_date = new Date();
document.write("The current locale time and date is " + the_date.toLocaleString());
document.write("<br><br>The day in week in the date object is " + the_date.getDay());
// -->
</SCRIPT> 

Executed code
 



Change Function


Document Object
domain Returns the server domain name which served the document.
images Returns the images in the document.
lastModified Returns the date the file was last modified.
links Returns the links of the document.
referrer Returns the referrer of the document.
title Returns the title of the document.
URL Returns the the entire URL of the document.

Date Object
getDate Returns an integer set to the date's object day in the month.
getDay Returns an integer set to the date's object day in the week.
getYear Returns a the year of the date object.
toGMTString Returns a string set to the Greenwich Mean Time (GMT) or Coordinated Universal Time (UTC).
toLocaleString Returns a string set to the current locale time.

Infant Growth Charts - Baby Percentiles Overtime Pay Rate Calculator Salary Hourly Pay Converter - Jobs Percent Off - Sale Discount Calculator Pay Raise Increase Calculator Linear Interpolation Calculator Dog Age Calculator Ideal Gas Law Calculator Stokes Law Equations Calculator Operating Expense Ratio Calculator Constant Acceleration Motion Physics Doppler Effect Equations Calculator Hydraulic Radius Formulas Calculator Logarithm Functions Calculator Temperature Converter Cauchy Number Calculator Weight Equations Formulas Calculator Einstein Energy Equations Calculator Orifice Flow Rate Calculator Inductor Equations Calculator Compare Loans Analysis Calculator Torque Equations Formulas Calculator Lattice Multiplication Calculator Microorganism Disinfection Calculator Colebrook Friction Factor Line Equations Formulas Calculator Stress Strain Equations Calculator

Online Web Apps, Rich Internet Application, Technical Tools, Specifications, How to Guides, Training, Applications, Examples, Tutorials, Reviews, Answers, Test Review Resources, Analysis, Homework Solutions, Worksheets, Help, Data and Information for Engineers, Technicians, Teachers, Tutors, Researchers, K-12 Education, College and High School Students, Science Fair Projects and Scientists

By Jimmy Raymond
View Jimmy Rayamond's profile on LinkedIn

Contact: aj@ajdesigner.com

Privacy Policy, Disclaimer and Terms

Copyright 2002-2015