# Variable surveyDateUtils`Const`

surveyDateUtils: {
capitalize: (str: string) => string;
getDate: (str: string) => string;
getLabel: (str: string, locale: string) => string;
getLabelToTranslate: (
date: string,
separator?: string,
) => { id: string; values: { day: string; label: string; time: string } };
getTime: (str: string, separator?: string) => string;
surveyDateLabels: (
dates: string[],
separator?: string,
) => Record<string, { id: string; values: Record<string, string> }>;
toPercent: (value: number, total: number) => number;
} = ...

#### Type Declaration

- ##### capitalize: (str: string) => string

- ##### getDate: (str: string) => string

- ##### getLabel: (str: string, locale: string) => string

- ##### getLabelToTranslate: (
  date: string,
  separator?: string,
  ) => { id: string; values: { day: string; label: string; time: string } }

- ##### getTime: (str: string, separator?: string) => string

- ##### surveyDateLabels: (
  dates: string[],
  separator?: string,
  ) => Record<string, { id: string; values: Record<string, string> }>

- ##### toPercent: (value: number, total: number) => number

- Defined in jamespot-user-api/src/util/survey.ts:47