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 can initialize date using datetime constructor.</p>

<pre><code>&gt;&gt;&gt;import datetime
&gt;&gt;&gt;d = datetime.datetime(1998,10,23)
&gt;&gt;&gt;print(d.strftime('date is %d %b,%Y'))  
</code></pre>

python