View Single Post
Old 02-06-2012, 09:24 AM   #1
AndyW1691
Member
AndyW1691 began at the beginning.
 
AndyW1691's Avatar
 
Posts: 21
Karma: 10
Join Date: Jan 2012
Device: Kindle 3 & Mac OSX
Python help please

I am trying to modify a template function without knowing Python. I'm sure it must be easy to do, but can't get the syntax correct. Here are the details:

The function has the statement 'date = mg.group(1)' which returns a string of the format 'mm/dd/yyyy'

What I want to do is to swap the order of the 'mm' & 'dd' so the final string has the form 'dd/mm/yyyy'. How do you do this in Python?

Thank you for your help.

Andy
AndyW1691 is offline   Reply With Quote