Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

date computations in a PCL

I see that the GregorianCalendar class is not available in a C# Portable Class Library. I want to do some calendar calculations -- how many months, weeks, and days, have passed between two dates.

Is my best bet to roll my own?

like image 481
William Jockusch Avatar asked Feb 17 '26 09:02

William Jockusch


1 Answers

Try Noda Time: http://nodatime.org/

It is a date/time library for .NET that has a portable version available.

like image 111
Daniel Plaisted Avatar answered Feb 19 '26 22:02

Daniel Plaisted