I have datetime field called field1 there i am selecting date & time and i have another field called filed2 there it should display only fields1's time. How can we do this?
As of now i am displaying both date and time. Unable to display only time.
Code:
start_date: fields.datetime('Start Date')
start_time: fields.datetime()
start = datetime.strptime(start_date, "%d-%m-%Y %H:%M:%S")
value['start_time'] = start.strftime("%d-%m-%Y %H:%M:%S")
This will give o/p in datetime format.I need only time.
Thanks