.net Get localized DateTime format specifiers -


it possible in .net localized datetime specifiers?

for example italian language:

d > g dd > gg mm > mm hh > oo yyyy > aaaa 

and on

not in way thinking, no. standard , custom date , time format strings language-neutral.

they can applied using specific language or culture identifier, so:

datetime dt = datetime.now;                      // or value string format = "g";                             // whatever format cultureinfo culture = new cultureinfo("it-it");  // culture code string s = dt.tostring(format, culture);         // apply them both 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -