How to change date format 08-06-2019 to 08.06.2019
I need this dot format
how to change this can anyone help me?
Thanks
How to change date format 08-06-2019 to 08.06.2019
I need this dot format
how to change this can anyone help me?
Thanks
Try this:
Datetime.parseexact(“08-06-2019”,“dd-MM-yyyy”,system.globalization.cultureinfo.invariantculture).tostring(“dd.MM.yyyy”)
or
Now.Tostring(“dd.MM.yyyy”)
Now.Tostring(“dd.MM.yy”)
Datetime.parseexact(“08-06-2019”,“dd-MM-yyyy”,system.globalization.cultureinfo.invariantculture).tostring(“dd.MM.yy”)
or
now.Tostring(“dd.MM.yy”)
You have to mark right post as solution but not yours
Now.Tostring(“dd.MM.yy”)
Is this working for yesterday date?
which means 07.06.19
For this try this: Now.AddDays(-1).Tostring(“dd.MM.yy”)
Thanks buddy @lakshman
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.