- added time for assigned date/submission date;
This commit is contained in:
10
src/helpers/getDateTimeFromISOstring.js
Normal file
10
src/helpers/getDateTimeFromISOstring.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const getDateTimeFromISOstring = (
|
||||
value,
|
||||
options = {
|
||||
day: '2-digit', month: '2-digit', year: 'numeric', hour12: false,
|
||||
hour: 'numeric', minute: 'numeric', second: 'numeric',
|
||||
}) => {
|
||||
return value ? Intl.DateTimeFormat('it-IT', options).format(new Date(value)) : value;
|
||||
}
|
||||
|
||||
export default getDateTimeFromISOstring;
|
||||
Reference in New Issue
Block a user