Nearest completed quarter

后端 未结 7 1187
野性不改
野性不改 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.

提交回复
热议问题