def global_date_format(date):
 formatted_date = getdate(date).strftime(u'%d %B %Y')
 return ((formatted_date.startswith(u'0') and formatted_date[1:]) or formatted_date)

def global_date_format ( date ) : formatted_date = getdate ( date ) . strftime ( u'%d %B %Y' ) return ( ( formatted_date . startswith ( u'0' ) and formatted_date [ 1 : ] ) or formatted_date )
returns date as 1 january 2012 .