Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » date format

#1 2012-12-12 14:33:25

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

date format

i would like to output date format as dd.mm.yyyy. how i need to change this code below?
by default it outputs date as mm/dd/yyyy.

jQuery(function() {
      jQuery("#datepicker).datepicker();
    });

place i took this code

Offline

#2 2012-12-12 16:16:44

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: date format

jQuery site has details on formats.

jQuery(function() {
      jQuery("#datepicker").datepicker({ dateFormat: "dd.mm.yy" });
    });

Note: yy = 4 digit year.

Last edited by MattD (2012-12-12 16:17:57)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2012-12-13 07:50:09

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

Re: date format

many thank’s matt!

Offline

  1. Index
  2. » How do I…?
  3. » date format

Board footer

Powered by FluxBB