Function formatDateTillMilliSeconds