Coder Social home page Coder Social logo

bherbulot / jquery.dateformatter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netsach/jquery.dateformatter

0.0 2.0 0.0 17 KB

A basic formatter for javascript date objects

License: GNU General Public License v3.0

JavaScript 40.69% HTML 59.31%

jquery.dateformatter's Introduction

Plugin jquery date formater

Français

Mercredi 15 Décembre 2015 15:10:29

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'l j F Y H:i:s'
});
$('#result-001').html(formated_date);

15/12/15

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'd/m/y'
});
$('#result-002').html(formated_date);

Mercredi 15 Décembre

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'l d F'
});
$('#result-003').html(formated_date);

Anglais

Wednesday 15 December 2015 15:10:29

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'l j F Y H:i:s',
        locales: 'en-GB'
});
$('#result-004').append(formated_date);

15/12/15

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'd/m/y',
        locales: 'en-GB'
});
$('#result-005').append(formated_date);

Wednesday 15 December

formated_date = $.date_formater({
current_date: new Date(), format: 'l d F', locales: 'en-GB'

}); $('#result-006').html(formated_date);

Espagnol

Miércoles 15 Diciembre 2015 15:10:29

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'l j F Y H:i:s',
        locales: 'es-ES'
});
$('#result-007').html(formated_date);

15/12/15

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'd/m/y',
        locales: 'es-ES'
});
$('#result-008').html(formated_date);

Miércoles 15 Diciembre

var formated_date = $.date_formater({
        current_date: new Date(),
        format: 'l d F',
        locales: 'es-ES'
});
$('#result-009').html(formated_date);

Représentation des Caractères

Lettre Représentation
Jours  
j Jour du mois, sans les zéros initiaux 1 à 31
l Jour de la semaine, textuel, version longue, en français
d Jour du mois, sur deux chiffres (avec un zéro initial) 01 à 31
Mois  
F Mois, textuel, version longue; en français, comme Janvier ou Décembre Janvier à Décembre
m Mois au format numérique, avec zéros initiaux 01 à 12
n Mois sans les zéros initiaux 1 à 12
Années  
Y Année sur 4 chiffres Exemples : 1999 ou 2003
y Année sur 2 chiffres Exemples : 99 ou 03
Heures  
H Heure, au format 24h, avec les zéros initiaux 00 à 23
G Heure, au format 24h, sans les zéros initiaux 0 à 23
Minutes  
i Minutes avec les zéros initiaux 00 à 59
Secondes  
s Secondes, avec zéros initiaux 00 à 59

jquery.dateformatter's People

Contributors

bherbulot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.