public string ConvertNepaliTOEnglishMonthChar(string day, string month, string year) { NCCSNepaliDateLib.NepaliDateClass nepalidate = new NCCSNepaliDateLib.NepaliDateClass(); nepalidate.SetNepaliDate(Convert.ToInt16(year), Convert.ToInt16(month), Convert.ToInt16(day)); DateTime ENGDate = nepalidate.GetEnglishDate(); return(ENGDate.GetDateTimeFormats()[7].ToString()); }
public string ConvertNepaliTOEnglish(string day, string month, string year) { NCCSNepaliDateLib.NepaliDateClass nepalidate = new NCCSNepaliDateLib.NepaliDateClass(); nepalidate.SetNepaliDate(Convert.ToInt16(year), Convert.ToInt16(month), Convert.ToInt16(day)); DateTime ENGDate = nepalidate.GetEnglishDate(); return(ENGDate.ToString("dd/MM/yyyy")); }
public string NepaliMonths1EnglishDate(string NepaliYear, string NepaliMonth) { NCCSNepaliDateLib.NepaliDateClass nepalidate = new NCCSNepaliDateLib.NepaliDateClass(); short NYear = short.Parse(NepaliYear); short NMonth = short.Parse(NepaliMonth); short NDay = 1; nepalidate.SetNepaliDate(NYear, NMonth, NDay); DateTime EngDate = nepalidate.GetEnglishDate(); return(EngDate.GetDateTimeFormats()[7].ToString()); }