Skip to content

Commit

Permalink
add format should d.m.Y in datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
hunk committed Aug 2, 2011
1 parent 1362832 commit 12442be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions field_types/datepicker_field/datepicker_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,8 @@ switch_formats = function(date){
if(date == "m.d.y"){
return "mm.dd.y";
}

if(date == "d.m.Y"){
return "dd.mm.yy";
}
}
3 changes: 2 additions & 1 deletion field_types/datepicker_field/datepicker_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function _options(){
'Y-m-d' => '2008-04-20',
'd-M-y' => '20-Apr-08',
'm.d.Y' => '4.20.2008',
'm.d.y' => '4.20.08'
'm.d.y' => '4.20.08',
'd.m.Y' => '20.04.2008'
);

$data = array(
Expand Down

0 comments on commit 12442be

Please sign in to comment.