I am using asp.net
i has int (10112009)
at the end I want the date form to be day-day / month month / yyyy
what's the best way (or way) to do this?
thanks
I would do something like this:
int n = 10112009; DateTime date; if (DateTime.TryParseExact(n.ToString("00000000"), "ddMMyyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out date)) { // use date }
Source: https://habr.com/ru/post/1302583/More articles:Passing multiple arguments from IronPython.NET method. - pythonWhat CSS hack can pass the w3c check? - cssHow to delete a record when two tables have a foreign key referenced by each other? - sqlResources for writing a kernel in C - cwhat exactly happens when we use ajax - ajaxJavaScript: Why is this the case with windows.parent? - javascriptIn Android: How to get variables / data from one screen to another? - androidexpand Tiny url in java - javaWhat does :: mean and in oCaml? - ocamlHow to broadcast a message on the network? - cAll Articles