here i am trying to get “dd” from previous date but first let me show how did i get the pervious date by using CurrentDayMinusOne = “DateTime.now.AddDays(-1).ToString(“dd-MM-yyyy”)” and when i try to get “dd” value from it i got an error and this is how i tried to get a “dd” value varToDay = “Cint(CurrentDayMinusOne.ToString(“dd”)).ToString”
please any help could be apprecited