How do I get today's date in C # in the format mm / dd / yyyy?
I need to set a string variable before today's date (preferably without a year), but there should be a better way than creating a month - / - day at a time at a time.
BTW: I'm in the US, so M / dd would be correct, for example. September 11 - September 9.
Note: the answer to the question of kronose came up with a discussion of internationalization, and I thought it was surprising enough since I cannot make it an βacceptedβ answer.
answer kronoz
date c #
Keng Aug 28 '08 at 16:37 2008-08-28 16:37
source share