correctly return milliseconds in date