Welcome To Snipplr


Everyone's Recent Snippets Tagged date



Find the date with or without a year and with double or single digit month or day. Easily extendable to other date delimiters and formats.
0 141 posted 8 years ago by pumpkinthehead
http://msdn.microsoft.com/en-us/library/system.globalization.juliancalendar.getdayofyear(v=vs.90).aspx
0 191 posted 8 years ago by jsturtevant
Validate Birth day.
1 130 posted 8 years ago by steppannws
Esto es por si estamos desarrollando una aplicación en la cual necesitamos manejar la fecha y hora con javascript.
0 116 posted 8 years ago by jrobinsonc
Can use second, Minute and many other from the url above
0 102 posted 8 years ago by jsturtevant
Better way of generating date in ISO 8601 format (e.g. "2011-12-12T20:50:22+0100"). Needs to require [clj-time.core :as time] and [clj-time.format :as time-format].
0 175 posted 8 years ago by ef
Return string representing current date in ISO 8601 format, e.g. "2011-12-12T20:50:22+0100". java.util.Calendar and java.text.SimpleDateFormat have to be imported first. NOTICE: Use this instead: http://snipplr.com/view/62060/clojure-iso-8601-curre...
0 253 posted 8 years ago by ef
Converts textual dates like '1-3-1954' and '01-02-1963' to respectively '1954-3-1' and '1963-02-01'. MySQL is smart enough to understand the values without leading zeros when inserting into a DATE field.
0 134 posted 8 years ago by jpkunst
intfield has this format: YYYYMMDD
0 408 posted 8 years ago by wnasich
0 103 posted 8 years ago by danfsmith
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 219 posted 8 years ago by aristoworks
0 110 posted 8 years ago by silentpro
Reference of simple operations with dates, such as formatting and arithmetic.
0 110 posted 8 years ago by denakitan
Using the day "zero" of the next month...
0 112 posted 8 years ago by ashsa
A custom class for formatting dates, similar to PHP bult-in function "date". The class also has some other date utils functions, like: dayOfYear, numberOfDaysInMonth, etc..
1 161 posted 9 years ago by TimoZachi
0 115 posted 9 years ago by pflangan
This requires my [date formatting script](http://snipplr.com/view/54806/javascript-date-formatting/). (date).toISO() converts the Date object to an ISO 8601 string Date.fromISO() converts an ISO 8601 string to a Date object
0 136 posted 9 years ago by wizard04
0 91 posted 9 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 93 posted 9 years ago by claudiowebdesign
An additional method for the jQuery validation plugin to validate a german date (dd.mm.YYYY) based on DateITA method.
0 204 posted 9 years ago by tuuul
0 93 posted 9 years ago by lucaborace
Select rows that are 3 months ahead or 3 months behind from the current date.
0 82 posted 9 years ago by jafar
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 105 posted 9 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 108 posted 9 years ago by cpres