How to change TimePicker in NativeScript to show the time in 24-hour format?
问题 In NativeScript, there is the TimePicker, which one shows a time, but in 12-hour format. I have a problem, because in my database all of my times are saved in string (in format "23:59"). I canot set hour, e.g. 14. I have an idea, to convert string with split(':') and changing period AM to PM, but i cannot see any usefull method to do that. Please, help. 回答1: You can use the native APIs to set the 24-hour format. TimePicker in NativeScript is using UIDatePicker in iOS and android.widget