tags:

views:

41

answers:

1

How to display the following without any space also could we substitute a separator instead of space?

> log_time=datetime.datetime.now()
> print log_time
2009-12-16 16:10:03.558991
+2  A: 

Use datetime.date.strftime().

unwind
+1: Reference the already clear documentation.
S.Lott