- added bando preview page;
- added bando form preview;
This commit is contained in:
6
src/helpers/getDateFromISOstring.js
Normal file
6
src/helpers/getDateFromISOstring.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const getDateFromISOstring = (value, options = {}) => {
|
||||
const optionsMerged = options || { day: '2-digit', month: '2-digit', year: 'numeric', dateStyle: 'short' }
|
||||
return Intl.DateTimeFormat('it-IT', optionsMerged).format(new Date(value))
|
||||
}
|
||||
|
||||
export default getDateFromISOstring;
|
||||
Reference in New Issue
Block a user