Skip to content

Commit

Permalink
Update DateAndTime.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjamz committed Feb 26, 2016
1 parent 2a5d66f commit 58694d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/examples/form-elements/advanced/DateAndTime.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ TemplatesForms.registerFormElement({
template: 'dateTimeElement',
validationEvent: 'change',
validationValue: function (el, clean, template) {
var values = $(el).find('input').map(function () {
return $(this).val();
var values = $.map($(el).find("input"), function (e) {
return $(e).val();
});
return new Date(values.join('T')); // A single Date Object.
}
});
```
```

0 comments on commit 58694d8

Please sign in to comment.