This function returns an array of dates between 2 dates.
Pass this function 2 dates it will return the total number of weekdays between the 2 days, pass true as a third param to return the number of weekend days
days, hours, difference, dates
using DateTime to get the difference between 2 dates the first and second params are dates then last param is optional
MySQL, Hours, Dates
Using TIMESTAMPDIFF get the total hours between 2 dates.
Date, Working Days, Bank Holidays
The snippet below will return the number of week days between 2 dates also exclude any dates in an array such as bank holidays
date, time, strtotime
by using strtotime you can format a date how way you like its a case of modifying the flags in the date().
date, format, mysql, reverse, order
Snippet to re-order date vars to put them in the correct format for mysql entry.
php, twitter, time, stamp, post, date
This function takes the date and time and returns how much time has passed, just like twitter does.
for example 10 seconds ago
Forgot your password?
Don't have an account? Register
Copyright © 2011 - 2017 created by David Carr Web Developer. All code MIT license. All rights reserved. Built using Simple MVC Framework