You can use this - Convert.ToDateTime(dt.ToString(“MM/dd/yyy”)) , where dt is DateTime variable.
(or)
dateInput = jul 6,2018
DateTime.ParseExact(dataInput,“MMM dd, yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)
Please find the attached xaml for you reference.
DateConversion.xaml (5.4 KB)
Hope this helps,if it works, mark it as solution.
Thanks,
Neelima.