Convert Date to “dd-MMM-yyyy” format c#

后端 未结 5 1413
名媛妹妹
名媛妹妹 2021-01-17 09:15

Guys i am unable to convert datetime to \"dd-MMM-yyyy\" format. My code is given below:

TreeNode tn = new TreeNode(dr[\"pBillDate\"].ToString());       // He         


        
5条回答
  •  死守一世寂寞
    2021-01-17 10:16

    DateTime StartDate = Convert.ToDateTime(datepicker.Text);
    string Date = StartDate.ToString("dd-MMM-yyyy");
    

提交回复
热议问题