Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials > Programming Tutorials > Javascripting Articles > Javascript Dates & Time Coding Tutorials
JavaScript Date Object
The Date object is used to work with dates and times.
Return today's date and time Example
How to use the Date() method to get today's date.
getTime() Example
Use getTime() to calculate the years since 1970.
setFullYear() Example
How to use setFullYear() to set a specific date.
toUTCString() Example
How to use toUTCString() to convert today's date (according to UTC) to a string.
getDay() Example
Use getDay() and an array to write a weekday, and not just a number.
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
Display a clock Example
How to display a clock on your web page.
JavaScript Date Object
In this tutorial you learn JavaScript Date Object…
Date and time
You probably have seen many Web sites that incorporate a clock. Before JavaScript, you had to use CGI to have the current date and time on a page. Now, creating clocks and the date is easy and can make your site look cool.
Date Object and Array Object
I think that you will find this lesson and the next to be a lot of fun. This lesson introduces you to two stand alone objects, the Date Object and the Array Object. You will learn how to extract a date and time from the Date object. The next lesson will c
Days of the week
On this page, we will deal with the Months and the Days as we use them in JavaScript.
Java scripts - Date Script
This script allows you to put the current date in a location specified by you. It is very similar to the script on the homepage which tells the date.
Dates Galore
This script displays the Day, Month, and Year; but with a certain flare. It shows on the status bar.
Dates and Times
In this primer we'll talk about seven new methods: getDay(), getDate(), getMonth(), getFullYear(), getHours(), getMinutes(), and getSeconds(). Each of these already exists and can be grabbed and placed on your Web page.
Working with Dates
JavaScript's Date object makes it easy to handle dates in JavaScript. You can use this object to store dates, convert between date formats, and retrieve the current date and time.
Basic Date Display Script
Have you been wanting to display the current date on your Web pages? There are several ways to accomplish it.
Javascript Date and Time Object
The Date object is useful when you want to display a date or use a timestamp in some sort of calculation.
The Date Object Constructor and Date Object Methods
Below is an example of dynamically generated numbers representing the day of the week, month of the year, day of the month and current year. All this information can be pulled from JavaScript's built-in Date Object using the Date Object Constructor.
Arrays and the Date Object
Rather than printing the default numeric values that the Date object's methods, getDay() and getMonth() return, the NAMES of the current day of the week and month are printed, resulting in a date string that is understood by people.
Date and Time in JavaScript
The date object is very useful for obtaining the date and time on the client. It supports various methods, which return a specific value.
The Date-object
JavaScript lets you use some predefined objects. This is for example the Date-object…
Dynamic date
This tutorial shows how to print current local time set on the browsing machine. I don't know how to use it, maybe just to catch the time difference on server.
The Date Object
The Date object handles all date and time processing for JavaScript. We talk about the Date object in detail elsewhere. For now we will just look at some basic features of the Date object, just enough to get you up and running.
Date Object
There are fours ways of instantiating a date object…
Date Display: mmddyyyy
Use this code snippet to display today's date on your web page in mm/dd/yyyy format…
Date Display: Basic
Use this code snippet to display today's date on your web page…
Date Last Modified Display
Use this code snippet to determine and display the date the document was last modified (date only).
Title Bar Date Display
Use this code snippet to display today's date on your web page TITLE BAR…
Statusbar message
You could use your status bar to display the time and date. You might also use it to display mouse-over text or a welcome message. View the source of the demo page for the source code.
Calculating the difference between two dates
Learn how to calculate the difference between two dates in JavaScript, and in the process, derive some useful applications such as counting down to a particular event, counting up, displaying what's new on your page etc.
Date Functions
Display the date a web page or file was last modified. This is useful because you can change the file and, without changing any HTML, the page displays a new date. The document object has a last modified date property.
Javascript Date Validation
In forms when asking for date fields it is a good idea to validate the date value using client side (JavaScript) validation along with your programming language validation. The following example shows how you can do this for the mm/dd/yyyy format.
OBJECT: Date
The Date object allows you to work programatically with dates and times. You create a Date object using the Date constructor as shown in the syntax above and the available parameters are as follows…
Checking a date
On this page I explain how to make sure that a date your users have filled in does in fact exist, and how to check whether it is in the past or in the future.
Last modified date
This script will give your users information on how long ago the document they're reading was last modified. In addition, it does so in a user friendly way.
JavaScript Date Object
The JavaScript Date Object can be used to work with dates and times…
JavaScript Date Object Functions
The Date object contains 17 functions. In this section you will see these 17 functions in some small examples…
RECENT ARTICLES from Graphic Design BloG
Starting a Graphic Design Business: Part II
You’re in the Money
In our last post we identified some of the advisors you’ll need on your team as you start a graphic design business. Lucky for you, the logistical fun doesn’t end there. Armed with your graphic design education and ready to take on your first project, you’ll first need a pricing structure. Design [...]
![]() |
![]() |
|
![]() |
![]() |
|
Got (Photoshop) Gadgets? Part II
More Cool Gadgets
This week wraps up our series on Photoshop gadgets for websites. These gadgets are quite generic and can be used in many different sorts of applications. The accompanying tutorials are straightforward and detailed. The more difficult ones will take more time to build, but the results will be worth it. Enjoy!
Digital MP3 Player
This [...]
Got (Photoshop) Gadgets? Part I
Spruce Up Your Website
Are you tired of the same old button gadgets everyone else uses on their websites? If you are, here are a few gadgets you can create in Photoshop that may bring some bling to your webpages. A big thanks to Hongkiat for assembling most of these tutorials.
Flash Drive Gadget
For all those tech [...]
Things You Won?t Hear About Successful Web Designers - Part II
Got Customers?
Take the case of “Jesse,” a brilliant web designer. It’s obvious that he has serious skills in design and can run circles around other web designers when it comes to talent. But oddly enough, he doesn’t have many customers.
On more than one occasion he tells his customers that he is “overworked” and complains about [...]
Things You Won?t Hear About Successful Web Designers - Part I
What You Need
If you ask most employed web designers what factors were most important in their development as a web designer you’ll probably hear “experience” and “school” at the top of their lists.
Outside of coding skills there are other elements that make a web designer successful. The following traits are things that you won’t usually [...]
How to Select a Good Web Design College
Some Guidelines and Tips
If you are seriously considering going to college for your graphic design education or web design degree you already know that there are no shortages of available colleges, universities, and online education centers that constantly vie for your attention. But how can you distinguish between the good schools and the bad ones? [...]
Twas the Night Before Debugging
Happy Holidays!
We just wanted to say thanks for visiting this site and to wish everyone a restful and happy New Year. We’ve done a little parody of a famous poem for all you web designers out there. We hope you like it.
Twas the Night Before Debugging
by Frank Ling aka “Admin”
Twas the night before debugging when [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.
Inspirational Buisness Cards
How to show cut lines for business card slits?
Prints made from original artwork?
Black & White Drawing
Free Logo Design
Need Some HTML tutorial
HDR photography ( High Dynamic Range)
Coolest Flyers & Posters - Great design inspiration & ideas
I am deeply sadden by the recent news
Hey - it's a MOVIE thread!
Tunes while you design
A whole lot of unessesary quotations.
Is Mozilla the best browser???
Finally!
Bad Photograph?