0

See here for how the "d" Custom Format Specifier is supposed to work:

Consider this code:

Console.WriteLine(DateTime.Now.ToString("d"));
// Should result in 8
// Result I'm seeing is 08/07/2014

Why is the "d" not working?

Matthew Layton
  • 39,871
  • 52
  • 185
  • 313

1 Answers1

4

Read the documentation, notice the first sentence:

If the "d" format specifier is used without other custom format specifiers, it is interpreted as the "d" standard date and time format specifier. For more information about using a single format specifier, see Using Single Custom Format Specifiers later in this topic.

Selman Genç
  • 100,147
  • 13
  • 119
  • 184