ToQuarter C# DateTime Extension

I searched on the internet for a quick way to get the Quarter from a DateTime, but I didn’t really find anything useful, so I created this quick extension that seems to work great!  I just wanted to share this to save someone time so they don’t waste the same amount of time that I did.  I am thinking about putting together an open source library to handle many other things like this, what are your thoughts about this?




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.