MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getDisplayValue

Function getDisplayValue

apps/start/src/components/ui/input-date-time.tsx:40–49  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

38
39 // Format date for display
40 const getDisplayValue = (dateString: string): string => {
41 if (!dateString) return '';
42
43 try {
44 const date = parseISO(dateString);
45 return isValid(date) ? format(date, 'MM/dd/yyyy HH:mm') : dateString;
46 } catch {
47 return dateString;
48 }
49 };
50
51 const handleDateTimeSelect = () => {
52 pushModal('DateTimePicker', {

Callers 1

InputDateTimeFunction · 0.85

Calls 1

formatFunction · 0.85

Tested by

no test coverage detected