Skip to content

Commit

Permalink
Update documentation for formatted value.
Browse files Browse the repository at this point in the history
  • Loading branch information
wehriam committed Nov 19, 2016
1 parent 8bff7f9 commit 03131b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var App = React.createClass({
formattedValue: formattedValue // Formatted String, ex: "11/19/2016"
});
},
componentDidUpdate() {
componentDidUpdate: function(){
// Access ISO String and formatted values from the DOM.
var hiddenInputElement = document.getElementById("example-datepicker");
console.log(hiddenInputElement.value); // ISO String, ex: "2016-11-19T12:00:00.000Z"
Expand Down

0 comments on commit 03131b4

Please sign in to comment.