Say I am given a date like "August 2016" is there a way in PHP to simply find if a date has no day given?
All the PHP functions I can find automatically set a "1" to the day of a date if none is given.
What I want to do is weed out dates that don't give me a day.
They are not provided by me, and can be mixed in UK or US formats.
All the PHP functions I can find automatically set a "1" to the day of a date if none is given.just use aDateTimefor that, then set the day manually. what day do you expect if none is given? you can just load it intoDateTimeand ignore the date, you can control whatever you format output after that anyway