diff --git a/js/components/clin_fields.js b/js/components/clin_fields.js index 22faeabe..fa9bfcb0 100644 --- a/js/components/clin_fields.js +++ b/js/components/clin_fields.js @@ -1,5 +1,5 @@ import * as R from 'ramda' -import moment from 'moment' +import { format } from 'date-fns' import DateSelector from './date_selector' import { emitEvent } from '../lib/emitters' @@ -71,15 +71,17 @@ export default { }, { func: this.popStartsAfterContract, - message: `PoP start date must be on or after ${moment( - CONTRACT_START_DATE - ).format('MMM D, YYYY')}.`, + message: `PoP start date must be on or after ${format( + CONTRACT_START_DATE, + 'MMM D, YYYY' + )}.`, }, { func: this.popEndsBeforeContract, - message: `PoP end date must be before or on ${moment( - CONTRACT_END_DATE - ).format('MMM D, YYYY')}.`, + message: `PoP end date must be before or on ${format( + CONTRACT_END_DATE, + 'MMM D, YYYY' + )}.`, }, ], } diff --git a/package.json b/package.json index 0604d27e..e5c95e60 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "azure-storage": "^2.10.3", "babel-polyfill": "^6.26.0", "date-fns": "^1.29.0", - "moment": "^2.24.0", "ramda": "^0.25.0", "stickybits": "^3.6.6", "svg-innerhtml": "^1.1.0",