Date range query - 29 of February in "MMdd" format issue


#1

I encountered a difficulty when trying to query on
"field_name": {
"type": "date",
"format": "MMdd"
}
field. It happened for "0229" date and I got message "failed to parse date field [0229] with format [MMdd]". What shall I do considering 29 of February a valid date for leap years.


#2

I you don't use a year, than the current is suspected.
But in 2018 there is no 29. 2..

Try using it with year, it should work.


#3

Thanks @Mojster for your response.
I'm aware that it would work if the year is added, but in my case it must not be year dependent.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.