Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Confirmation of using custom date format correctly.

$
0
0

Creating a web api to get json date array values in a custom date format of international standard yyyy-mm-dd. I'll be using CultureInfo of "en-us" for now but could add other cultures later. CultureInfo.DateTimeFormatInfo property can be created custom so that I can achieve these formats via the CultureInfo when date parting, etc. Key to keep unit tests consistent and in sync as I will be doing a lot of unit tests and string manipulation off of dates. Is this the best recommendation for this custom formatting behavior? Other recommendations? 

Thank you.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>