ADDED:moment.js for datetime format,applied the complete task function