How to change the date format from dd-MM-yyyy To

Date pattern in Invoice - image

But I need to convert this format and feeding into a form but the format of the form is different
Basically there is a calender and we have to select the date from calender according to the format. image

Snapshot is image

Sure, apologies, it seems a simpler conversion than I had first read it as,

Step 1: Read the input date as a string variable “03/01/19”

Step 2: Reassign this as a DateTime Variable using System.Globalization.CultureInfo.InvariantCulture), this makes it available to date functions, ie. reformatting

Step 3: Pass this date variable to a new format ("dd-MMM-yyyy) and output as string

DateConvert.xaml (5.0 KB)

2 Likes

Cdate(dateinstring).tostring(“dd-MMM-yyyy”)

2 Likes