Support formatting the epoch (0) date value

This now validates dates to provide helpful error messages. The validation method it uses will support the epoch date as well.