c# - String.format() DateTime With Arabic culture -


check below code snippet,

namespace testdateconvertion {     class program     {         static void main(string[] args)         {             datetime testvalue = new datetime(2013, 12, 15, 15, 33, 44);              cultureinfo culture = new cultureinfo("ar-sa");             string stringvalue = string.format(culture, "{0:d} {0:hh:mm:ss}", testvalue);             console.writeline(stringvalue);             console.readline();         }     } } 

it gives output

22/02/35 15:33:44

i not getting how possible. whats 35 doing in output there

that's 13/12/2015 in hijri, 35 means 1435 in hijri, default date format saudi arabia.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -