Convet this system.dateTime variable From this format 04/16/2022 00:00:00 to this format 16/Apr/22

Suggest a expression for this

Hi,

Hope the following helps you.

dateTimeVar = DateTime.Parse("04/16/2022 00:00:00")

Then

dateTimeVar.ToString("dd/MMM/yy")

returns 16/Apr/22

Regards,

Hi you can assign use convert the variable liek this

yourVar.ToString(“dd/MMM/yy”)

Regards
Ahmad