Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged date



0 1591 posted 15 years ago by metoikos
0 1292 posted 15 years ago by cigraphics
0 1714 posted 15 years ago by leonelsantos
0 1250 posted 15 years ago by eme_dlr
Calculate the difference from two date in days
0 1714 posted 15 years ago by gfazioli
This will convert dates from MM-DD-YYYY to YYYY-MM-DD (iso format)
1 1775 posted 15 years ago by bradless
This is used to display the date the item was created, within the item page. DATE_FORMAT_LC2 can be changed to suit allowable Joomla variants.
0 1025 posted 15 years ago by K2Joom
Frequently I like to make data more user friendly, so while I make it easy for them to add a date as a shorthand format (mm/dd/yyyy) I like to return it as something easier to digest (Day of Month in Year, etc). This is the simplest way to do that I'...
0 1352 posted 15 years ago by xekonic
0 1296 posted 15 years ago by darokin
Calculate date time difference
0 1765 posted 15 years ago by fwso
Used to generates fake orders for Zen-Cart.
0 1355 posted 15 years ago by fwso
/** * @param Int $week * @param Int $year * @return Array */
0 1038 posted 15 years ago by jkjeldgaard
1 1354 posted 15 years ago by paulgrenwood
modified version of: http://www.linein.org/blog/2008/04/04/find-time-between-two-dates-in-php/
0 1785 posted 16 years ago by jkjeldgaard
PHP provides many date manipulation devices and an entire suite of date functionality with the datetime class. However, this does not address date validation, that is, what format a date is received in. The PHP strtotime() function will accept many f...
1 1748 posted 16 years ago by kanampo
0 1813 posted 16 years ago by giak
0 1696 posted 16 years ago by giak
This is a simple function that will return an array of all the dates corresponding to the day 'Monday' for a given year. It's pretty simple and may not be the cleanest way but it works for my purpose.
0 1724 posted 16 years ago by aristoworks
0 1744 posted 16 years ago by loric
0 1522 posted 16 years ago by gd6d
0 1220 posted 16 years ago by terrencewood
1 1171 posted 16 years ago by SteveMcDaniel
This snippet collects a date from a var and formats it into the correct format for database date entry
0 1509 posted 16 years ago by daveismyname
calendar module's mini calendar includes a needles 'empty day' div in every date cell. this kills them.
0 1331 posted 16 years ago by canarymason
I made this script to count the days until a birthday, the birthdays are stored in mysql with the year intact YYYY-MM-DD, so this function strips the first 4 chars, and adds the current year, if the date has already passed it adds the next year and c...
9 2883 posted 16 years ago by jcroom
1 1721 posted 16 years ago by martin_rusev