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

后端 未结 5 1379
名媛妹妹
名媛妹妹 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 09:58

    Find below code:

    DateTime todayDay = DateTime.Today.ToString();

    It will provide you with dd-MMM-yyyy format.

提交回复
热议问题