Formats an input POSIX date to Date8 format (YYYYMMDD). This function is a convenience function.
d8(dateObj)
dateObj
a POSIX date object
an integer YYYYMMDD representation