fixed the out put date formating error