About 447,000 results
Open links in new tab
  1. c# - Formatting ToShortDateString to dd/MM/yyyy - Stack Overflow

    Feb 25, 2019 · ToShortDateString does not have an overload which takes any parameter. If your ToShortDateString() returns MM/dd/yyyy format, that means your CurrentCulture has this format in …

  2. DateTime.Now.ToShortDateString (); replace month and day

    Feb 25, 2012 · Little addition to Jason's answer: The ToShortDateString() is culture-sensitive. From MSDN: The string returned by the ToShortDateString method is culture-sensitive. It reflects the …

  3. c# - Is there a culture-safe way to get ToShortDateString () and ...

    Apr 5, 2011 · Is there a culture-safe way to get ToShortDateString () and ToShortTimeString () with leading zeros? Asked 14 years, 5 months ago Modified 4 years, 8 months ago Viewed 19k times

  4. Get short date for System Nullable datetime (datetime ?) in C#

    Dec 31, 2013 · How to get short date for Get short date for System Nullable datetime (datetime ?) for ed 12/31/2013 12:00:00 --> only should return 12/31/2013. I don't see the ToShortDateString available.

  5. c# - Some problems using ToShortDateString () method on a nullable ...

    The value type Nullable<> encapsulates a value of another value type together with a boolean hasValue. This type Nullable<> inherits the method string ToString() from its ultimate base class, …

  6. c# - How to use ToShortDateString () on nullable datetime column ...

    Mar 3, 2016 · How can I use ToShortDateString() method when a datetime column allow nulls? I get the following error on this asp.net code <%= Model.EndDate.ToShortDateString() %> :

  7. c# - How to use ToShortDateString in linq lambda expression? - Stack ...

    Dec 17, 2014 · How to use ToShortDateString in linq lambda expression? Asked 12 years, 5 months ago Modified 10 years, 11 months ago Viewed 20k times

  8. how to convert datetime to short date? - Stack Overflow

    Apr 3, 2012 · 7 DateTime dateToDisplay = new DateTime(2014, 11, 03, 42, 50); String shortDateTime = dateToDisplay.ToShortDateString(); Then you can convert this shortDateTime to datetime like this

  9. How to produce localized date string with CultureInfo

    Apr 27, 2011 · I have the following code that produces a date string in en-us format. I would like to pass in the LCID (or equivalent value for the localized language) to produce the localized version of the date

  10. c# - Is there a difference between ToString ("d") and ToShortDateString ...

    Dec 2, 2016 · userDOB.ToShortDateString() Is there any difference between what these 2 lines should output? If not then i am going to push for having some consistency and using one of these formats, …