Nearest completed quarter

后端 未结 7 1183
野性不改
野性不改 2021-01-02 00:03

Is there a C# function which will give me the last day of the most recently finished Quarter given a date?

For example,

var lastDayOfLastQuarter = So         


        
相关标签:
7条回答
  • 2021-01-02 00:28

    You can use a simple switch statement to check which quarter the given date falls and return the last day of that quarter.

    0 讨论(0)
提交回复
热议问题