From 70fa598cf0e61dc1b72911a88d28d8c649f00fb5 Mon Sep 17 00:00:00 2001 From: Thomas Wana Date: Thu, 24 Mar 2016 10:36:25 +0100 Subject: [PATCH] Allow the date formatter to be set from external --- jquery.datetimepicker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 42f49b0..f9b615a 100755 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -639,6 +639,9 @@ initDateFormatter(); } }, + setDateFormatter: function(dateFormatter) { + dateHelper = dateFormatter; + }, RFC_2822: 'D, d M Y H:i:s O', ATOM: 'Y-m-d\TH:i:sP', ISO_8601: 'Y-m-d\TH:i:sO',