Пример #1
0
    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());
    }
Пример #2
0
    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"));
    }
Пример #3
0
    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());
    }