JavaScript Date Formatting Function

David Lindquist has created an awesome Date Formatting Function that makes formatting dates very easy. The single method format extends JavaScript’s native Date class. It takes a string argument representing a “mask” to apply the date object, and returns a human-readable string.