import { IDatePickerStrings } from "office-ui-fabric-react" ; export const DayPickerStrings = { months : [ 'January' , 'February' , 'March' , 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , 'October' , 'November' , 'December' , ] , shortMonths : [ 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' ] , days : [ 'Sunday' , 'Monday' , 'Tuesday' , 'Wednesday' , 'Thursday' , 'Friday' , 'Saturday' ] , shortDays : [ 'S' , 'M' , 'T' , 'W' , 'T' , 'F' , 'S' ] , goToToday : 'Go to today' , prevMonthAriaLabel : 'Go to previous month' , nextMonthAriaLabel : 'Go to next month' , prevYearAriaLabel : 'Go to previous year' , nextYearAriaLabel : 'Go to next year' , closeButtonAriaLabel : 'Close date picker' , isRequiredErrorMessage : 'Field is required.' , invalidInputErrorMessage : 'Invalid date format.' , } ; export function dateToISOLikeButLocal ( date ) { const offsetMs = date . getTimezoneOffset ( ) * 60 * 1000 ; const msLocal = date . getTime ( ) - offsetMs ; const dateLocal = new Date ( msLocal ) ; const iso = dateLocal . toISOString ( ) ; const isoLocal = iso . slice ( 0 , 10 ) ; return isoLocal ; }