Skip to content

Commit 2c68a96

Browse files
committed
Merge pull request quri#44 from TomClarkson/patch-1
Expose getValue
2 parents 1111387 + 00ecbad commit 2c68a96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DateTimeField.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ DateTimeField = React.createClass({
9393
});
9494

9595
},
96+
getValue: function() {
97+
return moment(this.state.inputValue, this.props.inputFormat, true).format(this.props.format);
98+
},
9699
setSelectedDate: function(e) {
97100
var target = e.target;
98101
if (target.className && !target.className.match(/disabled/g)) {

0 commit comments

Comments
 (0)