예제 #1
0
        private void calc()
        {
            DaysInMonth = DateConvertor.GetDaysInNepaliMoth(Year, Month);
            NepaliDate np = new NepaliDate(Year, Month, 1);

            StartDate = DateConvertor.GetEnglishDate(np.ToString());
            np.Day    = DaysInMonth;
            EndDate   = DateConvertor.GetEnglishDate(np.ToString());
        }
예제 #2
0
        public static String ToNepaliDate(DateTime englishDate)
        {
            NepaliDate dt = null;

            try
            {
                dt = GetNepaliDate(englishDate);
                if (dt != null)
                {
                    return(dt.ToString());
                }
                return(string.Empty);
            }
            catch (Exception ex)
            {
                return(string.Empty);
            }
        }