Method for getting edge of a day.
Set attribute value to zero if it is boolean and empty.