I'm wondering if someone can point me in the right direction. I tried searching all over these forums and googling without finding anything that could help me figure this one out.
I have a database with items that have a timestamp stored in a field called "timestamp" in the format of seconds since epoch. These were created via a form text input and using the strtotime() function.
In order to make it display friendly when pulling it back out of the database I'm using the date function. eg: date('F j, Y',$timestamp);
Now when the date is initially inputed and submitted to the database they may or may not contain the actual day of the month. eg. both August 1983 and August 1, 1983 are valid.
Is there a way to determine via the timestamp value whether a day was in fact included or not?
Right now if no day is specified for an entry it will display the day as the 1st of the month.
Thanks everyone!