First Day Of Month
Here is an often requested function to fetch the first day of the month. The function takes a single, optional parameter which is a unix timestamp of any date. The function will then return the unix timestamp of the first day of the month from the UNIX TIMESTAMP. If no timestamp is given, the function defaults to the current month.
The resulting timestamp can then be used with the PHP date() function to manipulated in any way possible. Ideal for calander classes or anywhere the first day of a month is required.
DEMONSTRATION
14227776001017648000
0 comments:
Post a Comment