Search Here

How to convert datetime.date to datetime.datetime

To day you will learn How to convert datetime.date to datetime.datetime.

#converting datetime.date to datetime.datetime
start_date = datetime.strptime(s_date.strftime('%Y%m%d'), '%Y%m%d')


Date formatting in Qweb reports (dd-mm-yy):

<h5 class="pull-right" style="position:relative; top: 2px; margin:0;"><u>Printed Date: <span t-esc="time.strftime('%d-%b-%Y')"></span></u></h5>

Post a Comment

0 Comments