C# DateTime ToShortDateString() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
DateTime

Definition

In C#, DateTime.ToShortDateString() returns only the date part as text. The shape comes from the current culture: month first in the United States, day first in Germany, year first in Japan.

It is the same as ToString("d"). The time of day is dropped.

This is an instance member of System.DateTime. You call it on a DateTime value, such as dt.ToShortDateString(...). DateTime is a struct, so every value is copied and never changed in place.

Syntax

Call it on a DateTime. It takes no arguments.

C#
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
DateTime dt = new DateTime(2026, 11, 18, 14, 30, 45);
string s = dt.ToShortDateString();   // "11/18/2026"
CallWhat it does
dt.ToShortDateString()Short date in the current culture.
dt.ToString("d")The same result, written with a format letter.
dt.ToString("d", culture)Short date for a specific culture, without changing the current one.

There is no culture overload. To choose a culture for one call, use ToString("d", culture). The examples set CurrentCulture so their output is fixed.

Library declarations
C#
public string ToShortDateString();

Parameters

ParameterDescription
NoneToShortDateString() takes no parameters.

Return Value

Return ValueDescription
stringThe date in the short date pattern of the current culture. No time is included.

C# Examples

Example 1 — Short Dates with a Fixed Culture

Set the invariant culture and print two short dates.

C#
using System;
using System.Globalization;

class Program {
    static void Main() {
        CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
        DateTime a = new DateTime(2026, 11, 18, 14, 30, 45);
        DateTime b = new DateTime(2026, 3, 5);
        Console.WriteLine(a.ToShortDateString());
        Console.WriteLine(b.ToShortDateString());
    }
}

How It Works

  1. Set the culture once. After this line every culture-aware call uses the invariant culture.
  2. Month first. The invariant short pattern is MM/dd/yyyy.
  3. Leading zeros. March 5 becomes 03/05/2026.
  4. Time hidden. The 14:30:45 in the first value never appears.

Example 2 — Same Date, Three Looks

Loop over German, British, and Japanese cultures.

C#
using System;
using System.Globalization;

class Program {
    static void Main() {
        DateTime dt = new DateTime(2026, 11, 18);
        foreach (string name in new[] { "de-DE", "en-GB", "ja-JP" }) {
            CultureInfo.CurrentCulture = new CultureInfo(name);
            Console.WriteLine(name + ": " + dt.ToShortDateString());
        }
    }
}

How It Works

  1. Switch the current culture. Each loop turn assigns a new CultureInfo.
  2. German. Day, month, year with dots between them.
  3. British. Day, month, year with slashes.
  4. Japanese. Year first, then month and day, which sorts naturally.

Example 3 — Date Only, Time Lost

Compare two times on the same day and parse the text back.

C#
using System;
using System.Globalization;

class Program {
    static void Main() {
        CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
        DateTime a = new DateTime(2026, 11, 18, 9, 0, 0);
        DateTime b = new DateTime(2026, 11, 18, 17, 30, 0);
        Console.WriteLine(a.ToShortDateString() == b.ToShortDateString());

        DateTime back = DateTime.Parse(a.ToShortDateString());
        Console.WriteLine(back.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture));
    }
}

How It Works

  1. Different times. One value is 09:00 and the other is 17:30 on the same day.
  2. Same text. The short date has no time, so both strings are equal and the line prints True.
  3. Parse it back. Reading the text gives a new value with a midnight time.
  4. Information lost. The 09:00 is gone, which is why this method is for display only.

Frequently Asked Questions

The date part as text in the short pattern of the current culture, such as 11/18/2026.
Yes. Both use the short date pattern of the current culture.
The current culture decides the order and separators.
Use dt.ToString("d", culture). ToShortDateString has no culture parameter.
No. It depends on culture and drops the time. Use "yyyy-MM-dd" with the invariant culture instead.

Next: ToShortTimeString()

Get the time of day as short text (hours and minutes) in the current culture with System.DateTime.

ToShortTimeString() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful