date formatting
make it more object oriented