DateFormatElement class
Leave feedback
On this page
Represents a date format element.
Learn more
The DateFormatElement type exposes the following members:
| Method | Description |
|---|---|
| to_string | Returns a str that represents the current DateFormatElement. |
| Property | Description |
|---|---|
| format | The format string. |
| single_format | The single format string. |
| Field | Description |
|---|---|
| DAY_OF_MONTH | Gets the day of month element, represented by one or two digits. |
| DAY_OF_MONTH_TWO_DIGITS | Gets the day of month element, represented by two digits. |
| MONTH | Gets the month element, represented by one or two digits. |
| MONTH_TWO_DIGITS | Gets the month element, represented by two digits. |
| MONTH_ABBREVIATED_NAME | Gets the month element, represented by abbreviated name. |
| MONTH_FULL_NAME | Gets the month element, represented by full name. |
| YEAR | Gets the year element, represented by one, two, three, or four digits. |
| YEAR_TWO_DIGITS | Gets the year element, represented by two digits. |
| YEAR_FOUR_DIGITS | Gets the year element, represented by four digits. |
| DATE_SEPARATOR | Gets the date separator element. |
Task guides that use DateFormatElement:
- module
groupdocs.search.options
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.