I scraped Dates from a website. I got dates in different formats like some dates are "Dec 4, 2021" and some dates are in "Dec 4, 2021". I used logic to get the updated date and I also made different date formats too and by using Django I show those dates in an HTML table.But the problem is that it shows only "Dec 5, 2021" but not "Dec 5, 2021". I did every possiblity but it couldn't work.
<pre lang="Python"> now = datetime.datetime.today() today_date1=now.strftime("%b %d, %Y") ab={'date':today_date1} return render(request, "index.html",ab) # HTML template <pre><table> <td>{{date}}</td> </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)