none
Confirmation of using custom date format correctly. RRS feed

  • Question

  • 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.

    Friday, December 14, 2018 5:51 PM

All replies

  • Hi Shawn Tolliver,

    Thank you for posting here.

    Since your question is more related to web API, you could post a new thread in Web API forum for suitable support.

    https://forums.asp.net/1246.aspx/1?Web+API

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, December 17, 2018 8:29 AM