amant / Nepali-Date-Convert

A simple class to convert nepali date to english and vise versa, included here both php and c++ version
11 stars 17 forks source link

A simple class to convert date from English Date (After Christ AD) to Nepali (Bikram Shambat - BS) and vise versa. Repository includes both PHP and C++ version of the code.

PHP Example:

$cal = new Nepali_Calendar();
print_r ($cal->eng_to_nep(2008,11,23));
print_r($cal->nep_to_eng(2065,8,8));

Also included in repository is demo.php you can view demo at http://happy-igniter.co.cc/lab/nepali_cal/demo.php