refine index.js date format