generate functionTue, 07 Feb 2023

wpf binding datetime to string

public string ToString(DateTime dateTime) { if (dateTime == null) { return string.Empty; } return dateTime.ToString("dd/MM/yyyy"); }

Want to kickstart your project?Use the new AI Studio to create your code