Software, your way.
How To Get Good Custom Software
(Download)
(PDF)
burger menu icon
WillMaster

WillMaster > LibraryWebsite Development and Maintenance

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Introducing the Date and Time Formatting Generator

Do you print dates on your web pages?

If yes, the new Date and Time Generator is for you.

It's for me, too. The generator is something I've wanted for myself for many months. It will save me time otherwise spent finding certain snippets of code on my hard drive.

Some people like to publish the day of the week with the dates, spelled out or abbreviated. Some like to format the date as day-month-year, others as month-day-year. Some like slashes between date elements, some like periods, others hyphens.

Some like to publish the time along with the date, or the time by itself. Some like to publish the time with seconds, some without. Other preferences are 24-hour format or 12-hour format with AM/PM.

All those preferences are available with the Date and Time Generator.

JavaScript, PHP, Perl — which programming language do you prefer?

The Date and Time Generator generates the source code to print the current date and/or time according to your stated preference in all three languages.

  1. Specify your date/time format preference.

  2. Copy the generated source code for the language you prefer — JavaScript, PHP, or Perl.

The generated source code is a complete application, ready to copy.

  • JavaScript — Paste it into the source code of a web page. The published date and time are according to the clock on your computer. For your site visitor's, the date/time will be according to their computer.

  • PHP — Paste it into the source code of an existing .php web page or save it as a separate .php web page. The published date and time are according to the clock on your server.

  • Perl — Save it as a .cgi or .pl file. Upload it to your server as plain text and give it 755 permissions. Type its URL into your browser or call it with an SSI tag from a .shtml web page. The published date and time are according to the clock on your server.

The generated code may be modified as needed.

If you print dates on your web pages, give the Date and Time Generator a try.

Click here to use the generator.

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2024 Will Bontrager Software LLC