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
Find below code:
DateTime todayDay = DateTime.Today.ToString();
It will provide you with dd-MMM-yyyy format.
dd-MMM-yyyy