React-native-modal-datetime-picker: How to get time from time object

Created on 26 Nov 2017  路  1Comment  路  Source: mmazzarolo/react-native-modal-datetime-picker

Hello!
Currently I am using the datetime picker with mode={"time"}. My onConfirm looks like this: onConfirm={(time) => setDateTime(time)}. Right now the time object looks like this: Sun Nov 26 2017 15:47:00 GMT+0100 (CET). My question is; how do I get the time from this object? And also, can I get it in the format: (hh:mm)? Thanks!

invalid question

Most helpful comment

That's not exactly a question related to the date picker, however you can manipulate the date with the functions showed on the left panel of the MDN.
Also, here is a related question on stackoverflow.
Have fun! 馃憤

>All comments

That's not exactly a question related to the date picker, however you can manipulate the date with the functions showed on the left panel of the MDN.
Also, here is a related question on stackoverflow.
Have fun! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gopikasireddy202 picture gopikasireddy202  路  3Comments

crobinson42 picture crobinson42  路  6Comments

yash-atreya picture yash-atreya  路  3Comments

ponleukea picture ponleukea  路  7Comments

akug17 picture akug17  路  3Comments