Added dateformat switch to change output date/time.