JSFiddle - React, Tailwind, and code Playground

by Yomi Eluwande

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>

JavaScript

var records = {
  "1": [
    {
      "id": 47,
      "user_id": "2",
      "log_type": "1",
      "log_description": "in",
      "created_at": "2017-04-05 16:23:02",
      "updated_at": "2017-04-05 16:23:02"
    }
  ],
  "2": [
    {
      "id": 46,
      "user_id": "2",
      "log_type": "2",
      "log_description": "out",
      "created_at": "2017-04-05 16:20:01",
      "updated_at": "2017-04-05 16:20:01"
    },
    {
      "id": 45,
      "user_id": "2",
      "log_type": "1",
      "log_description": "jdsjd",
      "created_at": "2017-04-05 16:19:25",
      "updated_at": "2017-04-05 16:19:25"
    }
  ]
}

//console.log(records)
let _date = new Date
let yomi = moment().format()
console.log(yomi)