I want to display the user time in the format "hh:mm a", but in the database I want to save the time in the format of unix timestamp. Is it possible to get the unix timestamp from DatePicker?
This is my code for the DatePicker:
<DatePicker
style={{ width: 130, marginLeft: -35 }}
date={this.props.endAt}
mode="time"
placeholder="End time"
format="hh:mm a"
confirmBtnText="Confirm"
cancelBtnText="Cancel"
onDateChange={(date) => { this.props.onEndTimeClicked(this.props.id, date) }}
/>