debian-mirror-gitlab/spec/frontend/__helpers__/datetime_helpers.js
2021-03-08 18:12:59 +05:30

6 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));