add Date keyword (#691)

This commit is contained in:
Sarah Yurick 2022-10-31 12:20:57 -07:00 committed by GitHub
parent b671dc62d3
commit f0646c8c1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View file

@ -1082,6 +1082,7 @@ impl<'a> Parser<'a> {
Keyword::MONTH => Ok(DateTimeField::Month),
Keyword::WEEK => Ok(DateTimeField::Week),
Keyword::DAY => Ok(DateTimeField::Day),
Keyword::DATE => Ok(DateTimeField::Date),
Keyword::HOUR => Ok(DateTimeField::Hour),
Keyword::MINUTE => Ok(DateTimeField::Minute),
Keyword::SECOND => Ok(DateTimeField::Second),