PHP Start of the day and End of the day for a timezone Util functions

This is a quick post where I am sharing a couple of functions to calculate start of a given day and end of the day for a given timezone

Start of the day

End of the day

You can play with these function and can adjust as per your requirement. Let me know if you see any issues with these.

I hope that this post will help you out in one way or another,

Cheers

VN:R_U [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:R_U [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply