blob: 25dbd1d477d36cfaa300ed59279c8d9465e80a99 (
plain)
1
2
3
4
5
6
|
import dateFormat from 'dateformat';
/**
* Returns a date object corresponding to the given date string.
*/
export const dateFromString = (dateString) => new Date(dateFormat(dateString));
|