How to write superscripted date in word document programatically

i have tages in word document and i am replacing that tag with my textbox values.I have date tag also in word document currently i am getting date in format like 11th February 2015, but i want 'th' on head of '11'. for this i am using below code

string date1 =string.Format(datetime.ToString("dd{0} - MMMM, yyyy"), sup + GetSuffix(datetime.Day.ToString()) + /sup);

result i am getting is 11th February 2015. 

Please Help.




  • Edited by Jon Joe Wednesday, February 18, 2015 10:04 AM
February 18th, 2015 12:59pm

Hi,

Could you please provide your development scenario and detailed message such as screen capture ?

Thanks

Best Regards

Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2015 3:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics