Group Array By Field Javascript Format Date