Welcome To Snipplr


Everyone's Recent Snippets Tagged date



« Prev 1 2 3 4 5 ... 11
  1. FAV

    [vba-excel] lister fichiers avec détails, dans une feuille excel

    How to list files, with details, in an excel sheet
    Visual Basic 1 views posted 6 months ago by martinbrait
  2. FAV

    How to use date pop-up calendar in custom drupal form

    How to use date pop-up calendar in custom drupal form
    PHP 3 views posted 3 years ago by guruparthi
  3. FAV

    Credit card Year dropdown

    This snippet adds credit card select box dropdown values 10 years in future from current year.
    PHP 4 views posted 3 years ago by acosonic
  4. FAV

    Find last two updates to a record

    Created as reply to question on ittoolbox.com:"Need your help in writing a query to pull audit history i.e. Last updated by a user 'XYZ' and for the same record key (ID) the second last record in the audit history table. i.e. Last update by this user...
    MySQL 2 views posted 4 years ago by bvwatson
  5. 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 3 views posted 5 years ago by Igeco
  6. FAV

    Format Date In Batch File

    Nice script for formatting dates in a batch file without having the system locale settings impact your format
    DOS Batch 4 views posted 5 years ago by kidmizere
  7. FAV

    C# get release date from Umbraco post

    You could use this snippet as an Umbraco XSLT Extension to be able to get releasedate from the Umbraco post in XSLT.
    C# 1 views posted 5 years ago by Reiff
  8. FAV

    mySQL datetime to formatted PHP date

    Format a mysql datetime into a PHP date
    PHP 3 views posted 5 years ago by flatearthcomms
  9. FAV

    Add current date to date field that is null

    MySQL 1 views posted 5 years ago by jlmarks
  10. FAV

    Check if a date is in the past or the future

    Examine a date and return false if it's in the past, or true for the future. Slightly more complicated than it needs to be, however there's an easy tutorial with full explanation if you follow the attached link.
    PHP 4 views posted 6 years ago by gromitski
  11. 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 2 views posted 6 years ago by camdagr8
  12. FAV

    username, password and date validation with php

    Simple PHP functions to validate username, password and date, functions check the input format and allowed characters and then return TRUE for valid data and FALSE for invalid data.
    PHP 13 views posted 6 years ago by codingforever99
  13. FAV

    Format a date to a as short a string as possible

    Todays dates are shown as hh:mm, dates from yesterday and earlier as dd mmm. This can be useful, since recent dates are showing more details
    ASP 2 views posted 6 years ago by lakkie
  14. 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 3 views posted 6 years ago by domramirez
  15. FAV

    PHP Date range formatter

    Takes one or two PHP timestamps, and returns a somewhat humanized string representing the date range * Jun 7th, 2013 * Jun 7th-11th, 2013 * Jun 7th-Jul 3rd, 2013 * Jun 7th, 2013-Jan 1st, 2013
    PHP 4 views posted 6 years ago by vodou
  16. FAV

    Date and hour Format in RadDatePicker

    Como añadir el formator para dd/mm/yyyy + hora
    ASP 2 views posted 6 years ago by keidash
  17. 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 3 views posted 7 years ago by davidwaterston
  18. 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 9 views posted 7 years ago by rumremix
  19. FAV

    Calculates the age out of a webEdition date field of a customer

    PHP script calculating the age of a customer coming from a webEdition field of the customer management.
    PHP 2 views posted 7 years ago by steho
  20. FAV

    Wordpress wp_get_archives for a specific category

    Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
    PHP 3 views posted 7 years ago by i-am-andy
  21. FAV

    Javascript Basic Date Formatter

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

    Date format in C

    C 11 views posted 7 years ago by mlecho
  23. FAV

    Simple function for converting unix timestamp to user friendly date

    A simple function for converting a php timestamp (integer) to a user frindly format. Examples: 10 Seconds ago, 4 Days ago. The function converts timestamp to U.F. format only if the timestamp is earlyer than one week. Otherwise it uses $dateFormat ar...
    PHP 12 views posted 7 years ago by TimoZachi
  24. FAV

    Add a current date to a file

    This is a batch file that will add the date to the end of all files in a particular directory located on the user's desktop and place them in a directory called Output_Renamed on the user's desktop.
    DOS Batch saved by 4 people 6 views posted 7 years ago by _reydin_
  25. FAV

    Validate the date

    This will check the date and if it is not a valid date then it will increment the month and reset the day back to one.
    PHP saved by 1 person 7 views posted 7 years ago by _reydin_
  26. FAV

    PHP - Getting Yesterday\'s Date in PHP

    Example calculate yesterday, but if you multiply by some number you can get in an easy way, weeks, months or years
    PHP 6 views posted 7 years ago by satie83
  27. FAV

    PHP5 DateTimeZones grouped by continent

    This is the list of [supported timzones](http://php.net/manual/timezones.php) that can be used with the [PHP5 DateTime](http://php.net/manual/class.datetime.php) class, grouped by geographical continent (rather than PHP's America/..., Asia/... etc id...
    PHP 6 views posted 7 years ago by ch1902
  28. FAV

    PHP display date: year, month, day, time, etc.

    Just a few quick functions to display the date in PHP.
    PHP 5 views posted 8 years ago by jknight42
  29. 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 2 views posted 8 years ago by pumpkinthehead
  30. FAV

    Julian Day of The Year

    http://msdn.microsoft.com/en-us/library/system.globalization.juliancalendar.getdayofyear(v=vs.90).aspx
    VB.NET 2 views posted 8 years ago by jsturtevant
« Prev 1 2 3 4 5 ... 11