__init__ constructor
Leave feedback
On this page
Initializes a new DateFormat instance.
def __init__(self, culture_name, format_elements):
...
| Parameter | Type | Description |
|---|---|---|
| culture_name | str |
The culture name. |
| format_elements | list[DateFormatElement] |
The format elements. |
from groupdocs.search.options import DateFormat, DateFormatElement
elements = [
DateFormatElement.DAY_OF_MONTH_TWO_DIGITS,
DateFormatElement.DATE_SEPARATOR,
DateFormatElement.MONTH_FULL_NAME,
DateFormatElement.DATE_SEPARATOR,
DateFormatElement.YEAR_FOUR_DIGITS,
]
date_format = DateFormat("de-DE", elements)
Initializes a new DateFormat instance.
def __init__(self, format_elements, date_separator):
...
| Parameter | Type | Description |
|---|---|---|
| format_elements | list[DateFormatElement] |
The format elements. |
| date_separator | str |
The date separator. |
from groupdocs.search.options import DateFormat, DateFormatElement
elements = [
DateFormatElement.DAY_OF_MONTH_TWO_DIGITS,
DateFormatElement.DATE_SEPARATOR,
DateFormatElement.MONTH_FULL_NAME,
DateFormatElement.DATE_SEPARATOR,
DateFormatElement.YEAR_FOUR_DIGITS,
]
date_format = DateFormat(elements, "/")
- class
DateFormat
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.