Date format conversion issue

our date is in dd-mm-yyyy format we have to convert it to d-mm-yyyy

system.DateTime.Now.Day.ToString try this

you can try this too
Datetime.ParseExact(“05-02-2020”.ToString,“dd-MM-yyyy”,System.Globalization.CultureInfo.InvariantCulture). ToString (“d-MM-yyyy”)

image
cheers @Gauri_Rawool

Hi @Gauri_Rawool

Try this YourDate.ToString(“d-MM-yyyy”)

Regards,
Kommi Jeevan.

image
i need to convert in another format so here what I can do