credit to roo for formats and functions
date conversion returns date instead of formatted string