receptor/src/date.js

6 lines
139 B
JavaScript
Raw Normal View History

2017-09-08 09:47:09 +02:00
import moment from 'moment';
export default function date(when) {
return `${when.format("YYYY-MM-DD LTS")} (${when.from(moment())})`;
}