Esempio n. 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());
        }
        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);
            }
        }