Add ISO date/time formatting

This commit is contained in:
pyoor 2017-06-26 14:57:46 -04:00
parent 02b8070dfa
commit 83ade20f6a

View file

@ -11,12 +11,13 @@ make.datetime = {
return new Date(new Date().getTime() - random.number())
}
},
date: function () { // eslint-disable-line no-unused-vars
return this.datetime.object().toDateString()
},
time: function () { // eslint-disable-line no-unused-vars
return this.datetime.object().toTimeString()
},
iso: function () { // eslint-disable-line no-unused-vars
return this.datetime.object().toISOString()
}
}