How to change Date format

Nanyang Zhan wrote:

Rahul Ha wrote:

How can I change it to dd-mm-yyyy form.
Please help me out.
there may be a method to do this job,
at least you can code a helper yourself, like
def my_date(date)

If you just need to reformat the date object when you print it, look at the strftime function in the API.