calendar icon indicating copy to clipboard operation
calendar copied to clipboard

I want to get the value of the input box?

Open liuzhenbase opened this issue 8 years ago • 2 comments

image

I am a novice. I want to get the value of the input box? But get the Moment object, rather than 20180117 format string. My code

  onStartChange = (value) => {
        this.setState({
            startValue: value[0],
            startOpen: false,
            endOpen: true,
        })
    }

liuzhenbase avatar Jan 22 '18 03:01 liuzhenbase

You can call format on value, e.x value.format('YYYYMMDD').

yesmeck avatar Jan 22 '18 07:01 yesmeck

thanks🙏

liuzhenbase avatar Jan 22 '18 07:01 liuzhenbase