Date format "d"

hi, I am trying to get only date(not month nor year) from Date Veriable but i am getting Complete date. Expected result is only-3
note- i want date in this format “1” or “2” or “3” not in “01” or “02” or “03”


image

@Hemant_Deshmukh

Try Lastdate.day.ToString

Cheers

Hi @Hemant_Deshmukh ,

As an alternate with String formatting for date, could try the below :

LastDate.ToString("%d")
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.