date formating implemented