Iso8601 format in date

Hello All,

I need some explanation about iso8601 format. Googled it but did’nt
found as i wanted.

Actually, i have a table called abc, columns are idate (type date) and
itime (type time). I concatenated them like this,

date_time = self.idate + " " + self.time

and passed it as a parameter to a function which will returns me the
is08601 format of date.

But its not giving me properly formatted date. Cal you guys please light
me what i am messing up?

On 21 April 2011 08:23, Hemant B. [email protected] wrote:

and passed it as a parameter to a function which will returns me the
is08601 format of date.

But its not giving me properly formatted date. Cal you guys please light
me what i am messing up?

Use strftime to format the date and time as you want it.

As an aside, you could use a datatime field to hold both the date and
time combined.

Colin