Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 本地社区datetimepicker没有给我一个邮戳_React Native - Fatal编程技术网

React native 本地社区datetimepicker没有给我一个邮戳

React native 本地社区datetimepicker没有给我一个邮戳,react-native,React Native,我正在使用react native community/datetimepicker,但它并没有给我一个日期戳,只是给了我一个时间戳。我已将模式更改为date,但它仍然给我一个时间戳。下面是我的代码: {this.state.show && ( <DateTimePicker testID="dateTimePicker" timeZoneOffsetInMinutes={0} value={new D

我正在使用react native community/datetimepicker,但它并没有给我一个日期戳,只是给了我一个时间戳。我已将模式更改为date,但它仍然给我一个时间戳。下面是我的代码:

{this.state.show && (
      <DateTimePicker
          testID="dateTimePicker"
          timeZoneOffsetInMinutes={0}
          value={new Date()}
          mode={'date'}
          is24Hour={false}
          display="calendar"
          onChange={value => {
             Person.setProperty('birthDate', value);
          }}
      />
  )}
{this.state.show&&(
{
Person.setProperty('生日',值);
}}
/>
)}
查看

setDate = (event, date) => {};

<RNDateTimePicker onChange={this.setDate} />;
onChange={(event, date) => {
   Person.setProperty('birthDate', date);
}}