I am new to django. In my template I need the current date as date format, while the following code returns string:
<p>{% now "Y-m-d" as date %}</p>
where I want the date in format of 2018-12-17 as a date not string. Is there anyway to do that?
thnaks
date
ordatetime
instead ofstr
as shown in this answer) you can find a few options in this answer I wrote some time ago. – Ralf Jun 2 '19 at 1:52