Available on crate feature
numeric
only.Functionsยง
- dd
- Recognizes either one or two digits of a
day
part. - dd_mm
- Recognizes the
day
andmonth
parts separated by thenumeric_date_parts_separator
using thedd
andmm
parsers. - dd_
mm_ only - Recognizes the
day
andmonth
parts separated by thenumeric_date_parts_separator
and returns theNaiveDate
with the selected day, month and current year if the date exists, otherwise returnsError::NonExistentDate
. - dd_
mm_ y4 - Recognizes the
day
,month
andyear
parts separated by thenumeric_date_parts_separator
and returnsNaiveDate
with the selected parts if the date exists, otherwise returnsError::NonExistentDate
. - dd_only
- Recognizes either one or two digits of a
day
part and returns theNaiveDate
with the selected day and current month and year if the date exists, otherwise returnsError::NonExistentDate
. - mm
- Recognizes either one or two digits of a
month
part. - mm_dd
- Recognizes the
month
andday
parts separated by thenumeric_date_parts_separator
using themm
anddd
parsers. - mm_
dd_ only - Recognizes the
month
andday
parts separated by thenumeric_date_parts_separator
and returns theNaiveDate
with the selected day, month and current year if the date exists, otherwise returnsError::NonExistentDate
. - mm_
dd_ y4 - Recognizes the
month
,day
andyear
parts separated by thenumeric_date_parts_separator
and returnsNaiveDate
with the selected parts if the date exists, otherwise returnsError::NonExistentDate
. - numeric_
date_ parts_ separator - Recognizes a separator of numeric date parts in the following templates (asterisk symbol denotes some separator):
- y4
- Recognizes four digits of the
year
part. - y4_
mm_ dd - Recognizes the
year
,month
andday
parts separated by thenumeric_date_parts_separator
and returnsNaiveDate
with the selected parts if the date exists, otherwise returnsError::NonExistentDate
.