Welcome To Snipplr


Everyone's Recent Snippets Tagged date



1 ... 5 6 7 8 9 10
I use something similar to the example to get the difference between statuses in a status log table that I have. It comes in handy when determining the number of days between status changes. This works in MySQL 5.0.
0 2189 posted 16 years ago by bradless
Handy Date/Time converter: Convert Date Object to MySQL date format, Translate minutes into an English phrase, Convert MySQL date to Actionscript Date object, Get Day name from Date, Get name of Month from a Date Object, Input the seconds and return...
1 2609 posted 16 years ago by chrisaiv
1 1814 posted 16 years ago by paulgrenwood
0 1533 posted 16 years ago by wbednarski
modified version of: http://www.linein.org/blog/2008/04/04/find-time-between-two-dates-in-php/
0 2295 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 2159 posted 16 years ago by kanampo
0 2286 posted 16 years ago by giak
0 2118 posted 16 years ago by giak
Tentative source shows conversion to/from microseconds.
0 2369 posted 16 years ago by pckujawa
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 2235 posted 16 years ago by aristoworks
0 2218 posted 16 years ago by loric
A small collection of the most wanted string-functions in ASP / VB.
1 2141 posted 16 years ago by choasis
This script displays the current date inside a form via 3 prefilled drop down menus (day, month, year). The visitor can then specify a different date if he/she wants. You can have multiple drop down dates within the same form as well.
0 1889 posted 16 years ago by kanampo
Reads the EXIF Data to find the actual original taken date. This is available on most camera's.
1 3694 posted 16 years ago by derekholmes
This script creates thumbnail images containing 25 thumbs each and display the EXIF time and date if your version of ImageMagick supports that (some do not).
0 1712 posted 16 years ago by deepsoul
requires Rails libraries. could be rewritten to just use core Ruby libs, but I'm too lazy right now and I use this entirely in my Rails apps.
0 2139 posted 16 years ago by mepatterson
These statements convert a date/time field into just a date or a time field
2 2265 posted 16 years ago by highlyevolved
0 1979 posted 16 years ago by gd6d
0 1582 posted 16 years ago by kitzelh
0 1671 posted 16 years ago by terrencewood
1 1564 posted 16 years ago by SteveMcDaniel
Read in a remote XML file, change the pubDate date format, and output to specific local file.
0 1767 posted 16 years ago by karlhorky
This snippet collects a date from a var and formats it into the correct format for database date entry
0 1949 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 1753 posted 17 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 3393 posted 17 years ago by jcroom
1 ... 5 6 7 8 9 10