Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged date



« Prev 1 2
  1. FAV

    FILL DATE INPUT WITH FIRST AND LAST DAY OF CURRENT MONTH

    Permet de préremplir des champs avec le premier et le dernier jour du mois courant au format jj/mm/aaaa
    JavaScript 15 views posted 5 years ago by Igeco
  2. FAV

    Date.lapsed(Date)

    Calculates the time in hh:mm:ss between two dates Usage: var past = new Date('1/1/2013'); var now = new Date(); var lapsed = past.lapsed(now);
    JavaScript 4 views posted 6 years ago by camdagr8
  3. FAV

    Light Date-to-String formatting

    I don't really know how other people do this kind of thing, but this was my take.
    JavaScript 7 views posted 6 years ago by domramirez
  4. FAV

    Convert a Date object to an ISO 8601 formatted string

    Javascript which converts a Date object into an ISO 8601 formatted string - 'YYYY-MM-DDTHH:mm:ss.sssZ' - with a fallback for when the function 'toISOString' doesn't exist (e.g. IE 8 or less). Usage: var now = new Date; console.log(now.toISOStrin...
    JavaScript 22 views posted 7 years ago by davidwaterston
  5. FAV

    dynamic current year with JavaScript

    Often on a page footer, we want a copyright date range starting with the year the website was launched and ending the current year. Doing this dynamically means no need to update on 1/1 every year. The js snippet below uses the server date to accompl...
    JavaScript 13 views posted 7 years ago by rumremix
  6. FAV

    Javascript Basic Date Formatter

    Javascript Basic Date Formatter
    JavaScript 25 views posted 7 years ago by samsonl
  7. FAV

    Flexible JavaScript Date Validation w/ Regex

    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.
    JavaScript 11 views posted 8 years ago by pumpkinthehead
  8. FAV

    Como tener la fecha exacta en JavaScript para una aplicacion.

    Esto es por si estamos desarrollando una aplicación en la cual necesitamos manejar la fecha y hora con javascript.
    JavaScript 10 views posted 8 years ago by jrobinsonc
  9. FAV

    last day of a month

    Using the day "zero" of the next month...
    JavaScript 7 views posted 8 years ago by ashsa
  10. FAV

    json date format regex

    JavaScript 9 views posted 8 years ago by pflangan
  11. FAV

    ISO 8601 date conversion

    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
    JavaScript 12 views posted 8 years ago by wizard04
  12. FAV

    Get time intervals between two Dates

    JavaScript 9 views posted 8 years ago by wizard04
  13. FAV

    edit Dateformat to yyyy-mm-dd

    JavaScript 8 views posted 8 years ago by Wookkie
  14. FAV

    Date translation in french in JavaScript

    Translate dates in french in JavaScript
    JavaScript 15 views posted 8 years ago by jbernus
  15. FAV

    JavaScript Date Formatting

    JavaScript 9 views posted 8 years ago by vagrantradio
  16. FAV

    Leap Year Check

    Extend Date object to have isLeapYear() boolean (true for Leap Years) Taken from https://raw.github.com/vitch/jquery-methods/master/date.js
    JavaScript 7 views posted 8 years ago by tomasdev
  17. FAV

    JavaScript Date Formatting

    Format a date into a string using several string variables. Usage: (new Date("6/6/2011")).format("%W, %B %d%o, %Y"); Result: Monday, June 6th, 2011
    JavaScript 15 views posted 8 years ago by wizard04
  18. FAV

    Nice formatted dates in Javascript.

    Example: April 5th, 2011
    JavaScript 7 views posted 8 years ago by trusktr
  19. FAV

    Jquery Date Formator Plugin

    I always find issue when we want to show date in different format i.e other than mysql default format. (YYYY-MM-DD) using jquery plugin this date format can be converted into any specified date format i.e indian,US,Europe from any html element
    JavaScript 3 views posted 8 years ago by pavanrulz
  20. FAV

    convert_date_to_human_readable

    From webworks, book "CMS Design Using Php and jQuery", page 93
    JavaScript 3 views posted 9 years ago by shinokada
  21. FAV

    Year update for full (four digit) year or last two digits, with JavaScript

    JavaScript 12 views posted 9 years ago by stephcode
  22. FAV

    Get Current Year

    Great for use in site footers.
    JavaScript 5 views posted 9 years ago by batfan
  23. FAV

    ISO 8601 javascript Time String Conversion

    JavaScript 11 views posted 9 years ago by mrhoo
  24. FAV

    JS Dynamic Year (Copyright)

    JS to dynamically update year -- good for copyright.
    JavaScript 5 views posted 9 years ago by mennyj
  25. FAV

    sharepoint javascript date formatter

    converts date/time that sharepoint kicks out to m/d/y format.
    JavaScript 8 views posted 9 years ago by rumremix
  26. FAV

    Convert MySql Dates to localized dates

    Will convert all of the mysql dates on the page to be localized.
    JavaScript 6 views posted 9 years ago by yisreldov
  27. FAV

    JS Clock + Date (Real-Time)

    Creates a DATE and TIME object that can be places on a site. OPEN-SOURCE: Free to download, use, modify and distribute - so long as all Credits/Comments are left INTACT. If you have any thoughts, comments or ideas for this script (or another script...
    JavaScript saved by 3 people 17 views posted 9 years ago by darksider
  28. FAV

    JAVASCRIPT : Récupérer date en javascript (date du client)

    JavaScript 9 views posted 9 years ago by alexandrepayet
  29. FAV

    Javascript date picker

    A smart Javascript date picker.
    JavaScript 4 views posted 9 years ago by jaff
  30. FAV

    Date in milliseconds

    JavaScript 3 views posted 10 years ago by wbednarski
« Prev 1 2