This script is a great example that shows the date in different
formats from one function. Seeing the examples makes this
script easy to modify and can be used to help understand the
underlying code.
The JavaScript Source: Time and Date: ShowDate Function
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!