JSFiddle - React, Tailwind, and code Playground

JavaScript

var test =  new Date("02 January 2016");
console.log(test.getDate() + '/' + (test.getMonth() + 1) + '/' +  test.getFullYear());