How to get the users set of date format pattern strings? (3 replies)

Posted on .NET 247 See other posts from .NET 247
Published on 08 Jan 2010 14:12:38 Indexed on 2010/03/08 3:32 UTC
Read the original article Hit count: 244

Filed under:
I would like to get the current user's set of date format pattern strings as listed in the Control Panel regional settings applet. For my UK English system I see the following patterns listed: Short Date: dd/MM/yyyy dd/MM/yy d/M/yy d.M.yy yyyy MM dd Long Date: dd MMMM yyyy d MMMM yyyy If I use GetDateTimeFormats (d and D) the results match the expected patterns above, but of course they're the for...

© .NET 247 or respective owner