jojacafe
11/7/2016 - 11:04 AM

Date specific format

Date specific format

string dayStr = corteSuministroItem.Fecha.ToString("dddd", currentCulture).Remove(3);
                                                        string dayInt = corteSuministroItem.Fecha.ToString("dd", currentCulture);
                                                        string month = corteSuministroItem.Fecha.ToString("MMMM", currentCulture).Remove(3);

                                                        string date = string.Format("{0} {1} {2}", char.ToUpper(dayStr[0]) + dayStr.Substring(1), dayInt, char.ToUpper(month[0]) + month.Substring(1));