Convert System date format

Hello… I need help for change the date format…
date

I need get the system date and -1
For this, okay… I use DateTime.Now for get the date and after .AddDays (-1).ToShortDateString (I use this, because I don’t need the hour, just date)…
But the date returns in format MM-dd-yyyy and I need dd-MM-yyyy… Can help me, please?

@Grazielle_Lemos
Welcome to the forum

grafik

in your case use: data.AddDays(-1).toString(“dd-MM-yyyy”)

Thank you!

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