For your information.
The sample application mentioned in an earlier post is an MVC solution .Net framework 4.5 written in C# including all sources for the mentioned classes and examples how to use the classes.
After all the remarks I got in 2011 about source code I thought that there should be some interest in this code.
The sample application also includes the converted calendar code from Edward Henning where the time consuming BCD calculations are changed into longs for Phugpa, Tsurphu, Generalised Error Correction, -2000, mkhas pa'i snying nor, 1796 and New Genden Calculations, 1747 CE.
Additionally there is a date converter added which automatically takes into account that the first couples of weeks in a new year belong to the previous Tibetan year ( check on begin year and when necessary take the previous year ).
You can also see the classes and test them on-line at
after you requested a Testclass or Developers role.
( register logon Contact -> User roles )