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 848 posted 12 years ago by pumpkinthehead
http://msdn.microsoft.com/en-us/library/system.globalization.juliancalendar.getdayofyear(v=vs.90).aspx
0 849 posted 12 years ago by jsturtevant
Validate Birth day.
1 705 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 608 posted 12 years ago by jrobinsonc
Can use second, Minute and many other from the url above
0 506 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 1128 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 1572 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 607 posted 12 years ago by jpkunst
intfield has this format: YYYYMMDD
0 2571 posted 12 years ago by wnasich
0 610 posted 12 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 1264 posted 12 years ago by aristoworks
0 655 posted 12 years ago by silentpro
Reference of simple operations with dates, such as formatting and arithmetic.
0 677 posted 12 years ago by denakitan
Using the day "zero" of the next month...
0 610 posted 12 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 864 posted 12 years ago by TimoZachi
0 646 posted 12 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 822 posted 12 years ago by wizard04
0 520 posted 12 years ago by dato
0 519 posted 12 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 502 posted 12 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 1023 posted 12 years ago by tuuul
0 466 posted 12 years ago by lucaborace
Select rows that are 3 months ahead or 3 months behind from the current date.
0 519 posted 12 years ago by jafar
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 597 posted 12 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 636 posted 12 years ago by cpres