Date and Time Python (Stuck)
<p>I am Python beginner. I have a question about Date and time code:</p>

<pre><code>import datetime
date = datetime.date.today()
print(date.strftime('date is %d%b,%Y'))
</code></pre>

<p>Now I want to print the date of my own choice. How can I do it? </p>

<p>For example, if today's date is (15 sep 2016) and I want to print (23 oct 1998), what should I do in order to make it work?</p>

<p>You may do it like so:</p>

<pre><code>&gt;&gt;&gt; from datetime import date
&gt;&gt;&gt; date(year=1998, month=10, day=23)
datetime.date(1998, 10, 23)
&gt;&gt;&gt; _.strftime('date is %d %b,%Y')
'date is 23 Oct,1998'
</code></pre>

<p>As per <a href="https://docs.python.org/3/library/datetime.html#datetime.date" rel="nofollow"><code>datetime.date()</code></a> documentation, <code>date()</code> accepts a year, month and a day.</p>

python