Date formatter

This is a simple JavaScript script to format a date.