You can use the strtotime() function in PHP to convert a Unix timestamp to the beginning and end of that day.
On this page, we are going to help you figure out the main ways of converting date formats in PHP.