> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Date and Time Types

## Article: Date and Time Types

## Article Link: https://dev.wix.com/docs/site-extensions/editor-react-components/editor-element/data/date-and-time-types.md

## Article Content:

# Date and Time Types
Date and time data types provide automatic validation for temporal data. They enforce ISO-8601 format standards, ensuring data quality without requiring custom validation logic.

## Local date

Local date in ISO-8601 extended local date format `(YYYY-MM-DD)`.

### Example

An event date field:

In the manifest:

```typescript
editorElement: {
  data: {
    eventDate: {
      dataType: "localDate",
      displayName: "Event Date",
      defaultValue: "2024-03-15",
    },
  },
}
```

In the component:

```tsx
import type { LocalDate } from '@wix/editor-react-types';

interface EventProps {
  eventDate?: LocalDate;
}

const Event = ({ eventDate }: EventProps) => (
  <time dateTime={eventDate}>{eventDate}</time>
);
```

## Local time

Local time in ISO-8601 extended local time format `(hh:mm[:ss][.sss])`.

### Example

An opening time field:

In the manifest:

```typescript
editorElement: {
  data: {
    openingTime: {
      dataType: "localTime",
      displayName: "Opening Time",
      defaultValue: "09:00",
    },
  },
}
```

In the component:

```tsx
import type { LocalTime } from '@wix/editor-react-types';

interface HoursProps {
  openingTime?: LocalTime;
}

const Hours = ({ openingTime }: HoursProps) => <span>{openingTime}</span>;
```

## Local date and time

Local date and time in ISO-8601 extended local date-time format `(YYYY-MM-DDThh:mm[:ss][.sss])`.

### Example

An appointment scheduling field:

In the manifest:

```typescript
editorElement: {
  data: {
    appointmentTime: {
      dataType: "localDateTime",
      displayName: "Appointment",
      defaultValue: "2024-01-01T09:00:00",
    },
  },
}
```

In the component:

```tsx
import type { LocalDateTime } from '@wix/editor-react-types';

interface AppointmentProps {
  appointmentTime?: LocalDateTime;
}

const Appointment = ({ appointmentTime }: AppointmentProps) => (
  <time dateTime={appointmentTime}>{appointmentTime}</time>
);
```

## See also

- [Data Overview](https://dev.wix.com/docs/site-extensions/editor-react-components/editor-element/data/data-overview.md)
- [Primitive Data Types](https://dev.wix.com/docs/site-extensions/editor-react-components/editor-element/data/primitive-data-types.md)
- [Contact Information Types](https://dev.wix.com/docs/site-extensions/editor-react-components/editor-element/data/contact-information-types.md)