Skip to content

Commit 096780c

Browse files
committed
Placed the new date time editors in their own folder. Additional adjustments.
1 parent 49be45c commit 096780c

20 files changed

+50
-50
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Date Time
2+
3+
The Date Time property editors provide interfaces for selecting dates, times, and time zones. Each editor is designed for specific use cases, from basic date selection to comprehensive date/time handling with time zone support.
4+
5+
{% hint style="info" %}
6+
These property editors supersede the [Date Time](../date-time.md) property editor, offering more focused functionality and specific return types (like `DateOnly`, `TimeOnly`, `DateTime`, or `DateTimeOffset`). You can switch from the legacy Date Time editor by changing your properties to use data types with these new editors.
7+
{% endhint %}
8+
9+
Umbraco CMS currently ships with four Date Time editors:
10+
11+
## [Date Only](date-only.md)
12+
13+
For selecting dates without time or time zone information. Returns `DateOnly?` values and is ideal for birthdays, deadlines, and event dates.
14+
15+
![Date Only property editor interface](./images/date-only-editor.png)
16+
17+
## [Time Only](time-only.md)
18+
19+
For selecting times without date or time zone information. Returns `TimeOnly?` values and is ideal for business hours, schedules, and time-based events.
20+
21+
![Time Only property editor interface](./images/time-only-time-format-hhmm.png)
22+
23+
## [Date Time (Unspecified)](date-time-unspecified.md)
24+
25+
For selecting dates and times without time zone information. Returns `DateTime?` values and is compatible with existing [DateTime](../date-time.md) editor.
26+
27+
![Date Time (unspecified) property editor interface](./images/date-time-time-format-hhmm.png)
28+
29+
## [Date Time (with Time Zone)](date-time-with-time-zone.md)
30+
31+
For comprehensive date, time, and time zone selection. Returns `DateTimeOffset?` values and handles time zones, daylight saving time, and international date/time scenarios.
32+
33+
![Date Time (with time zone) property editor interface](./images/date-time-with-time-zone-editor.png)

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-only.md renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/date-only.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88

99
The Date Only property editor provides an interface for selecting dates without time or time zone information. It focuses purely on date selection and returns `DateOnly` values.
1010

11-
## Key Features
12-
13-
- Calendar-based date selection
14-
- No time or time zone components
15-
- Focused interface
16-
- Returns strongly-typed `DateOnly?` values
17-
- Ideal for birthdays, deadlines, and event dates
18-
- No configuration required
19-
2011
## Configuration
2112
You can configure this property editor in the same way as any standard property editor, using the *Data Types* admin interface.
2213

@@ -30,7 +21,7 @@ This editor has no configuration options.
3021

3122
You will be presented with a date input.
3223

33-
![Date Only property editor interface](../built-in-umbraco-property-editors/images/date-only-editor.png)
24+
![Date Only property editor interface](./images/date-only-editor-open.png)
3425

3526
## Rendering
3627

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-unspecified.md renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/date-time-unspecified.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,33 @@
88

99
The Date Time (Unspecified) property editor provides a comprehensive interface for selecting dates and times. It excludes time zone information.
1010

11-
## Key Features
12-
13-
- Calendar-based date selection
14-
- Configurable time precision (hours/minutes or hours/minutes/seconds)
15-
- No time zone handling - stores pure date/time values
16-
- Returns strongly-typed `DateTime?` values
17-
- Compatible with existing DateTime-based editors
18-
1911
## Configuration
2012
You can configure this property editor in the same way as any standard property editor, using the *Data Types* admin interface.
2113

2214
To set up a property using this editor, create a new *Data Type* and select **Date Time (unspecified)** from the list of available property editors.
2315

2416
You will see the configuration options as shown below.
2517

26-
![Date Time Unspecified property editor configuration](../built-in-umbraco-property-editors/images/date-time-unspecified-property-editor-config.png)
18+
![Date Time Unspecified property editor configuration](./images/date-time-unspecified-property-editor-config.png)
2719

2820
- **Time format** - Specifies the level of precision for time values shown and stored by the editor.
2921

3022
### Time format
3123

3224
- **HH:mm** - Displays hours and minutes (e.g., `14:30`).
3325
Suitable for most general use cases.
34-
![Date Time Unspecified property editor showing time format in HH:mm format (hours and minutes only)](../built-in-umbraco-property-editors/images/date-time-time-format-hhmm.png)
26+
![Date Time Unspecified property editor showing time format in HH:mm format (hours and minutes only)](./images/date-time-time-format-hhmm.png)
3527
- **HH:mm:ss** - Displays hours, minutes, and seconds (e.g., `14:30:45`).
3628
Use this when you need more precise timing.
37-
![Date Time Unspecified property editor showing time format in HH:mm:ss format (hours, minutes, and seconds)](../built-in-umbraco-property-editors/images/date-time-time-format-hhmmss.png)
29+
![Date Time Unspecified property editor showing time format in HH:mm:ss format (hours, minutes, and seconds)](./images/date-time-time-format-hhmmss.png)
3830

3931
## Editing experience
4032

4133
### Adding or editing a value
4234

4335
You will be presented with a date and time input. This editor focuses only on the date and time components, unlike the time zone version.
4436

45-
![Date Time Unspecified property editor interface](../built-in-umbraco-property-editors/images/date-time-unspecified-editor.png)
37+
![Date Time Unspecified property editor interface](./images/date-time-unspecified-editor.png)
4638

4739
## Rendering
4840

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-with-time-zone.md renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/date-time-with-time-zone.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,14 @@
88

99
The Date Time with Time Zone property editor provides a comprehensive interface for selecting dates, times, and time zones. It stores values as ISO 8601 date/time strings with time zone information. This makes it ideal for applications that need accurate date handling across different time zones.
1010

11-
## Key Features
12-
13-
- Calendar-based date selection
14-
- Configurable time precision (hours/minutes or hours/minutes/seconds)
15-
- Flexible time zone configuration (all zones, local only, or custom selection)
16-
- Automatic daylight saving time handling
17-
- Type-ahead filtering for time zone selection
18-
- Returns strongly-typed `DateTimeOffset?` values
19-
2011
## Configuration
2112
You can configure this property editor in the same way as any standard property editor, using the *Data Types* admin interface.
2213

2314
To set up a property using this editor, create a new *Data Type* and select **Date Time (with time zone)** from the list of available property editors.
2415

2516
You will see the configuration options as shown below.
2617

27-
![Date Time with Time Zone property editor configuration](../built-in-umbraco-property-editors/images/date-time-with-time-zone-property-editor-config.png)
18+
![Date Time with Time Zone property editor configuration](./images/date-time-with-time-zone-property-editor-config.png)
2819

2920
- **Time format** - Specifies the level of precision for time values shown and stored by the editor.
3021
- **Time zones** - Controls how time zones are available in the property editor.
@@ -33,10 +24,10 @@ You will see the configuration options as shown below.
3324

3425
- **HH:mm** - Displays hours and minutes (e.g., `14:30`).
3526
Suitable for most general use cases.
36-
![Date Time with Time Zone property editor showing time format in HH:mm format (hours and minutes only)](../built-in-umbraco-property-editors/images/date-time-time-format-hhmm.png)
27+
![Date Time with Time Zone property editor showing time format in HH:mm format (hours and minutes only)](./images/date-time-time-format-hhmm.png)
3728
- **HH:mm:ss** - Displays hours, minutes, and seconds (e.g., `14:30:45`).
3829
Use this when you need more precise timing.
39-
![Date Time with Time Zone property editor showing time format in HH:mm:ss format (hours, minutes, and seconds)](../built-in-umbraco-property-editors/images/date-time-time-format-hhmmss.png)
30+
![Date Time with Time Zone property editor showing time format in HH:mm:ss format (hours, minutes, and seconds)](./images/date-time-time-format-hhmmss.png)
4031

4132
### Time zones
4233

@@ -50,7 +41,7 @@ When you select this option, a dropdown appears. You can search and select from
5041
- `Coordinated Universal Time (UTC)`
5142
- `Europe/Copenhagen`
5243
Will result in the following editing experience:
53-
![Date Time with Time Zone property editor showing custom time zone selection with UTC and Europe/Copenhagen options](../built-in-umbraco-property-editors/images/date-time-with-time-zone-custom.png)
44+
![Date Time with Time Zone property editor showing custom time zone selection with UTC and Europe/Copenhagen options](./images/date-time-with-time-zone-custom.png)
5445

5546
The selected time zone affects how the date/time is displayed and stored.
5647
When you select a time zone, the value will be saved with the corresponding offset (e.g., `2025-01-01T14:30:00+01:00`).
@@ -62,13 +53,15 @@ Daylight saving time is also taken into account.
6253

6354
You will be presented with date, time and time zone inputs. The time zone input allows typing, which filters the list of presented time zones.
6455

65-
![Date Time with Time Zone property editor showing time zone dropdown with filtering functionality as user types](../built-in-umbraco-property-editors/images/date-time-with-time-zone-filtering.png)
56+
![Date Time with Time Zone property editor showing time zone dropdown with filtering functionality as user types](./images/date-time-with-time-zone-filtering.png)
6657

6758
If your browser time zone is in the list and no date has been stored yet, the browser time zone will be pre-selected by default.
6859

60+
When you select a time zone different from your browser's local time zone, the editor displays a helpful conversion message. This shows what the selected date and time would be equivalent to in your local time zone, making it easier to understand the time difference.
61+
6962
If only one time zone is available, you will see a label with the time zone name instead.
7063

71-
![Date Time with Time Zone property editor displaying a single time zone as a static label instead of dropdown](../built-in-umbraco-property-editors/images/date-time-with-time-zone-single-time-zone.png)
64+
![Date Time with Time Zone property editor displaying a single time zone as a static label instead of dropdown](./images/date-time-with-time-zone-single-time-zone.png)
7265

7366
## Rendering
7467

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/images/date-only-editor.png renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/images/date-only-editor-open.png

File renamed without changes.
Loading

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/images/date-time-time-format-hhmm.png renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/images/date-time-time-format-hhmm.png

File renamed without changes.

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/images/date-time-time-format-hhmmss.png renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/images/date-time-time-format-hhmmss.png

File renamed without changes.

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/images/date-time-unspecified-editor.png renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/images/date-time-unspecified-editor.png

File renamed without changes.

16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/images/date-time-unspecified-property-editor-config.png renamed to 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/date-time-editor/images/date-time-unspecified-property-editor-config.png

File renamed without changes.

0 commit comments

Comments
 (0)