add support for date using moment.js