Change date formate

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

1 Like

@Abubakkar

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”)

@Abubakkar

Datetime.parseexact(“08-06-2019”,“dd-MM-yyyy”,system.globalization.cultureinfo.invariantculture).tostring(“dd.MM.yy”)

or

now.Tostring(“dd.MM.yy”)

@Abubakkar

You have to mark right post as solution but not yours :stuck_out_tongue:

1 Like

:+1::grinning:

Now.Tostring(“dd.MM.yy”)
Is this working for yesterday date?
which means 07.06.19

1 Like

@Abubakkar

For this try this: Now.AddDays(-1).Tostring(“dd.MM.yy”)

1 Like

Thanks buddy @lakshman

1 Like

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