Convert date in different format

hello friends,

how is possible to convert the date in the format “05-apr-17” in the format 05/04/2017?

Thank you so much,
cami :slight_smile:

Hi @CamiCat you can use datetime.ParseExact(“05-APR-17”,“dd-MMM-yy”,Nothing)

This will provide it in US format, so simple change the Nothing to UK Format :slight_smile:

1 Like

Hi @CamiCat

Try this code,
str_date = DateTime.ParseExact(“29- Aug-17”,“dd-MMM-yy”,Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)

1 Like