Changing date structure


#1

Hi,
Can anyone suggest me a code line for making following change please.

  1. Change date format 3/5/2018 to 03/05/2018

Thanks


#2

hi @suwalruchan365

string formatted = date.ToString(“DD-MM-yyyy”);

Thanks
Ashwin S