$ 0 0 JS Date Object, use the methods on Date Object.var d = new Date("2000-03-12T00:00:00")d.getDate() Try to do this @backend