[Tutor] Date subtraction

Turhan Arun turhan@incubatr.com
Fri, 6 Apr 2001 12:53:37 +0300


This is a multi-part message in MIME format.

------_=_NextPart_001_01C0BE7F.7348B557
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
I just started learning python...
Now, my question is:
I want to have a user enter a date in format dd/mm/YYYY like 06/04/2001
and another date in the same format like 22/04/2001
depending on these two inputs. I just want to create a list of date
strings like
['06/04/2001','07/04/2001','08/04/2001'....]
It will be great if you could give some idea.

Thanks,
Turhan Arun

------_=_NextPart_001_01C0BE7F.7348B557
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4417.0">
<TITLE>Date subtraction</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><TT><FONT SIZE=3D2>Hi all,</FONT></TT>

<BR><TT><FONT SIZE=3D2>I just started learning python...</FONT></TT>

<BR><TT><FONT SIZE=3D2>Now, my question is:</FONT></TT>

<BR><TT><FONT SIZE=3D2>I want to have a user enter a date in format =
dd/mm/YYYY like 06/04/2001</FONT></TT>

<BR><TT><FONT SIZE=3D2>and another date in the same format like =
22/04/2001</FONT></TT>

<BR><TT><FONT SIZE=3D2>depending on these two inputs. I just want to =
create a list of date strings like</FONT></TT>

<BR><TT><FONT =
SIZE=3D2>['06/04/2001','07/04/2001','08/04/2001'....]</FONT></TT>

<BR><TT><FONT SIZE=3D2>It will be great if you could give some =
idea.</FONT></TT>
</P>

<P><TT><FONT SIZE=3D2>Thanks,</FONT></TT>

<BR><TT><FONT SIZE=3D2>Turhan Arun</FONT></TT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0BE7F.7348B557--