Welcome To Snipplr


Everyone's Recent Snippets Tagged date



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 2833 posted 16 years ago by jcroom
0 1219 posted 16 years ago by jonniespratley
Converts dates in Numbers to SQLite format.
0 1420 posted 16 years ago by fonnesbeck
1 1680 posted 16 years ago by martin_rusev
0 1362 posted 16 years ago by traeregan
Very easy to use JS Calendar Control with so many customization options.
0 1396 posted 16 years ago by design2develop
0 1235 posted 16 years ago by sinecera
A simple JS script to validate a date. It returns a boolean type (true | false)
0 1578 posted 16 years ago by mardix
actionscript date object and some date calculations
1 1367 posted 16 years ago by stiobhart
2 1515 posted 16 years ago by randyjhunt
0 1001 posted 16 years ago by kawikak
2 1722 posted 16 years ago by craig1709
1 1751 posted 16 years ago by walokra
0 812 posted 16 years ago by remilauber
This function simply takes a Windows UTC timestamp and converts it to Unix epoch. This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since Janua...
0 1685 posted 16 years ago by cllorca
Explode de data para formato BR
0 1155 posted 16 years ago by wesleymacente
Here is a simple method for displaying footer copyright year. This way at the end of the year you are not updating footers for the first 3 weeks in January :)
0 1306 posted 16 years ago by jadedbat
1 1088 posted 16 years ago by joeydi
Groovy ranges works on dates also! (http://kousenit.wordpress.com/2009/02/02/groovy-groundhogs/)
2 1760 posted 16 years ago by narkisr
To be placed inside a loop or a query
1 1301 posted 16 years ago by davebowker
another way to set / create a date using jodatime download jodatime at http://joda-time.sourceforge.net/
1 1356 posted 16 years ago by callmeblessed
create a date using Calendar
1 1577 posted 16 years ago by callmeblessed
Paste this code in your HTML to display the current year. This script is commonly used in the © copyright's current year.
4 1699 posted 16 years ago by variantstudios
This takes a very readable date, such as "Fri, 4 Dec 2008 15:13:00 +0000", and outputs it as a relative date (such as "1 hour ago").
1 1488 posted 17 years ago by bjarkebech
Annoyingly hard to find, I'm sure others out there have felt the pain of converting sas dates to oracle date formats. example: data _null_; x_dt = datetime(); x_d = date(); put x_dt oracle_datetime.;...
0 4018 posted 17 years ago by vasdee
Used with calendar button
0 1132 posted 17 years ago by heislekw