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 1045 posted 12 years ago by pumpkinthehead
http://msdn.microsoft.com/en-us/library/system.globalization.juliancalendar.getdayofyear(v=vs.90).aspx
0 1116 posted 12 years ago by jsturtevant
Validate Birth day.
1 892 posted 12 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 761 posted 12 years ago by jrobinsonc
Can use second, Minute and many other from the url above
0 676 posted 12 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 1364 posted 12 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 1825 posted 12 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 780 posted 12 years ago by jpkunst
intfield has this format: YYYYMMDD
0 2824 posted 13 years ago by wnasich
0 766 posted 13 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 1486 posted 13 years ago by aristoworks
0 858 posted 13 years ago by silentpro
Reference of simple operations with dates, such as formatting and arithmetic.
0 875 posted 13 years ago by denakitan
Using the day "zero" of the next month...
0 791 posted 13 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 1086 posted 13 years ago by TimoZachi
0 818 posted 13 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 1016 posted 13 years ago by wizard04
0 672 posted 13 years ago by dato
0 664 posted 13 years ago by Wookkie
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 653 posted 13 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 1228 posted 13 years ago by tuuul
0 598 posted 13 years ago by lucaborace
Select rows that are 3 months ahead or 3 months behind from the current date.
0 663 posted 13 years ago by jafar
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 778 posted 13 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 785 posted 13 years ago by cpres