File: demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/date-uk.js

Recommend this page to a friend!
  Classes of Emmanuel Podvin   Blapy   demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/date-uk.js   Download  
File: demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/date-uk.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of demos/startbootstrap-sb-admin-2/bower_components/datatables-plugins/type-detection/date-uk.js
Date: 3 years ago
Size: 448 bytes
 

Contents

Class file image Download
/** * Automatically detect British (`dd/mm/yyyy`) date types. Goes with the UK * date sorting plug-in. * * @name Date (`dd/mm/yyyy`) * @summary Detect data which is in the date format `dd/mm/yyyy` * @author Andy McMaster */ jQuery.fn.dataTableExt.aTypes.unshift( function ( sData ) { if (sData !== null && sData.match(/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/(19|20|21)\d\d$/)) { return 'date-uk'; } return null; } );