It is simply a format string passed to the ToString method of the DateTime
calSMAlerted.SelectedDate.ToString("ddd, dd/MM/yyyy");
The ToString(string) overload of DateTime accepts a Standard Date Format String as well as a Custom Date And Time Format String.
With this last set of rules it is easy to build your required output format.