Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged date



« Prev 1 2 3 4 5
How to use date pop-up calendar in custom drupal form
0 2859 posted 9 years ago by guruparthi
This snippet adds credit card select box dropdown values 10 years in future from current year.
0 2982 posted 9 years ago by acosonic
Format a mysql datetime into a PHP date
0 2565 posted 11 years ago by flatearthcomms
Examine a date and return false if it's in the past, or true for the future. Slightly more complicated than it needs to be, however there's an easy tutorial with full explanation if you follow the attached link.
0 3591 posted 12 years ago by gromitski
Simple PHP functions to validate username, password and date, functions check the input format and allowed characters and then return TRUE for valid data and FALSE for invalid data.
0 4000 posted 12 years ago by codingforever99
Takes one or two PHP timestamps, and returns a somewhat humanized string representing the date range * Jun 7th, 2013 * Jun 7th-11th, 2013 * Jun 7th-Jul 3rd, 2013 * Jun 7th, 2013-Jan 1st, 2013
0 2401 posted 12 years ago by vodou
PHP script calculating the age of a customer coming from a webEdition field of the customer management.
0 2422 posted 13 years ago by steho
Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
0 3106 posted 13 years ago by i-am-andy
A simple function for converting a php timestamp (integer) to a user frindly format. Examples: 10 Seconds ago, 4 Days ago. The function converts timestamp to U.F. format only if the timestamp is earlyer than one week. Otherwise it uses $dateFormat ar...
0 1907 posted 13 years ago by TimoZachi
This will check the date and if it is not a valid date then it will increment the month and reset the day back to one.
1 2253 posted 13 years ago by _reydin_
Example calculate yesterday, but if you multiply by some number you can get in an easy way, weeks, months or years
0 2739 posted 13 years ago by satie83
This is the list of [supported timzones](http://php.net/manual/timezones.php) that can be used with the [PHP5 DateTime](http://php.net/manual/class.datetime.php) class, grouped by geographical continent (rather than PHP's America/..., Asia/... etc id...
0 2363 posted 13 years ago by ch1902
Just a few quick functions to display the date in PHP.
0 2611 posted 13 years ago by jknight42
This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.
0 2311 posted 14 years ago by aristoworks
0 1170 posted 14 years ago by dato
Questa piccola funzione riceve come argomento uno unix timestamp e ritorna una stringa contenente la "descrizione verbosa" della differenza di tempo. Ad esempio, usando il timestamp relativo a 5 minuti e mezzo fa, ritornerà la stringa "5 minuti e 30...
0 1087 posted 14 years ago by claudiowebdesign
0 1047 posted 14 years ago by lucaborace
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 1320 posted 14 years ago by nebojsac
In case you need to create your own listing of the last # of trailing months of Archived Wordpress Articles. This one is being used to pull the info onto a Magento page.
0 1246 posted 14 years ago by cpres
Insert that into the database as a string. The example would give you the format 2011-01-28
0 1617 posted 14 years ago by necode
0 1223 posted 14 years ago by retsub79
Allows you to display a look like 5 days ago.
0 1523 posted 14 years ago by paulund
0 1179 posted 14 years ago by kendsnyder
Returns the number of days in the month taking leap-years into account.
0 1405 posted 14 years ago by tasmanweb
0 1095 posted 14 years ago by zealmurapa
0 1166 posted 14 years ago by dsoms
0 1052 posted 14 years ago by linkmoises
« Prev 1 2 3 4 5