7 lines
191 B
JavaScript
7 lines
191 B
JavaScript
|
import dateFormat from 'dateformat';
|
||
|
|
||
|
/**
|
||
|
* Returns a date object corresponding to the given date string.
|
||
|
*/
|
||
|
export const dateFromString = (dateString) => new Date(dateFormat(dateString));
|