Skip to content

Commit 00ecbad

Browse files
committed
Expose getValue
1 parent b4ea2f0 commit 00ecbad

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
@@ -72,6 +72,9 @@ DateTimeField = React.createClass({
7272
});
7373

7474
},
75+
getValue: function() {
76+
return moment(this.state.inputValue, this.props.inputFormat, true).format(this.props.format);
77+
},
7578
setSelectedDate: function(e) {
7679
if (e.target.className && !e.target.className.match(/disabled/g)) {
7780
return this.setState({

0 commit comments

Comments
 (0)