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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.