Default time format to print and show in form


Can we have default time format like date format in system setting.

I am trying to print posting time {{ doc.get_formatted("posting_date") }}
But it is printing 14:30:04.594488

Is there any way to convert time into HH:MM AM or HH:MM PM format?


Would this work?

{{ doc.get("posting_date").strftime('%Y-%m-%d') }}

From here.


Thanks for this.
We can use this in our custom print format.
It will be useful if we have default time format setting.
Many Manufacturing Firm want to track time of stock entry, delivery note and invoice.
Global setting will be useful instead of creating custom print format.