Add ISO date/time formatting
This commit is contained in:
parent
02b8070dfa
commit
83ade20f6a
1 changed files with 3 additions and 2 deletions
|
@ -11,12 +11,13 @@ make.datetime = {
|
||||||
return new Date(new Date().getTime() - random.number())
|
return new Date(new Date().getTime() - random.number())
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
date: function () { // eslint-disable-line no-unused-vars
|
date: function () { // eslint-disable-line no-unused-vars
|
||||||
return this.datetime.object().toDateString()
|
return this.datetime.object().toDateString()
|
||||||
},
|
},
|
||||||
|
|
||||||
time: function () { // eslint-disable-line no-unused-vars
|
time: function () { // eslint-disable-line no-unused-vars
|
||||||
return this.datetime.object().toTimeString()
|
return this.datetime.object().toTimeString()
|
||||||
|
},
|
||||||
|
iso: function () { // eslint-disable-line no-unused-vars
|
||||||
|
return this.datetime.object().toISOString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue