debian-mirror-gitlab/spec/frontend/__helpers__/datetime_helpers.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
197 B
JavaScript
Raw Normal View History

2022-10-11 01:57:18 +05:30
import dateFormat from '~/lib/dateformat';
2021-03-08 18:12:59 +05:30
/**
* Returns a date object corresponding to the given date string.
*/
export const dateFromString = (dateString) => new Date(dateFormat(dateString));