how do I change format to DD/M/YYY H:M for this line:
ax1.set_title('from {} to {} \n'.format(startTime, endTime, fontsize=22))
cause currently when I run the module it is displayed this way: YYYY-MM-DD H:M:S
This is my code:
linematchregex = re.compile('(\d+/\d+/\d+ \d+:\d+),(\d+\.\d+)')
startTime = datetime.strptime(raw_input('please enter start time :'), '%d/%m/%Y %H:%M'
endTime = datetime.strptime(raw_input('please enter end time :') , '%d/%m/%Y %H:%M')
**ax1.set_title('from {} to {} \n'.format(startTime, endTime, fontsize=22))**
ax1.set_ylabel('Temp')
ax1.set_xlabel('Time')
plt.show()