Change date format on invoice

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 anos atrás
I'm trying to change the date format on the invoice from 23 March 2012 to 23/03/2012

This is the section I'm trying to change:

cell.AddElement(new Paragraph(String.Format(_localizationService.GetResource("PDFInvoice.OrderDate", lang.Id), _dateTimeHelper.ConvertToUserTime(order.CreatedOnUtc, DateTimeKind.Utc).ToString("D")), font));


Any ideas people ?
12 anos atrás
Have a look at the following articles:
http://msdn.microsoft.com/en-us/library/system.datetime.toshortdatestring.aspx
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
12 anos atrás
Thanks Andrei that's spot on !!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.