C#: try this
- yyyy(yy/yyy) - years
- MM - months(like '03'), MMMM - months(like 'March')
- dd - days(like 09), ddd/dddd - days(Sun/Sunday)
- hh - hour 12(AM/PM), HH - hour 24
- mm - minute
- ss - second
Use some delimeter,like this:
- MessageBox.Show(DateValue.ToString("yyyy-MM-dd"));
example result: "2014-09-30"
- empty format string:
MessageBox.Show(DateValue.ToString());
example result: "30.09.2014 0:00:00"