Month moved to the "Hours" secction using Date.parseexact

Hello,
I have some problems formatting some dates using this code

Date.ParseExact(vencimiento.Replace(“-”,“/”),“dd/mm/yyyy”, new CultureInfo(“es-ES”))

and i get this result.

Captura

as you may see, the month has moved to the “hours” section of the date variable.
what can i do to fix this?

Regards.

1 Like

Buddy its like this
You were almost done @brandon_araya

Date.ParseExact(vencimiento.Replace(“-”,“/”),“dd/MM/yyyy”, new CultureInfo(“es-ES”))

mm denotes minutes buddy
MM denotes Month

Cheers @brandon_araya

2 Likes

@brandon_araya

Replace mm with MM.

1 Like

Thanks, That solved it

Regards,

1 Like

Thanks for your help

Regards.

2 Likes

Fantastic buddy
Cheers @brandon_araya
Kindly make a solution buddy that would help others as well @brandon_araya