Welcome to mirror list, hosted at ThFree Co, Russian Federation.

datetime_helpers.js « __helpers__ « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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));