Set Date Format

what do u get in console for below code
var date =,“dd-mm-yyyy”);
and temp_from_date = moment(temp_from_date).format(“DD-MM-YYYY”);

1 Like

for moment its ok but its not supporting in filter its saying
Date 01-01-2019 must be in format: dd-mm-yyyy

and for var date =,“dd-mm-yyyy”);
TypeError: is undefined

fast forward to 2019… this format is still missing. so he did not send a pull request. I added the format in docType but front end calendar does not allow to select date in that format. any suggestions?

For Date Format like (01- jan-2020) in Print-
{{ frappe.utils.formatdate(doc.get(‘transaction_date’),“dd-MMM-yyyy”) }}

1 Like