I want to display the document date in input:
def AddStringOst(request,pk):
doc=Jurnal.objects.get(pk=pk)
print(doc.datadoc)
return render(request,'store/Doc/AddStringOst.html',{'docost':doc})
print(doc.datadoc):
2023-03-01 00:00:00+00:00
HTML:
<input type="date" id="id_datadoc" class="form-control" style="text-align:right" required value="{{docost.datadocdate|date:'Y-m-d'}}"></td>
But it doesn’t work… What needs to be fixed?