locked
ToShortDateString in another Culture RRS feed

  • Question

  • User1128493551 posted

    Hello!

    My projects Culture is "ru-RU".
    I want to represent my Date object in a short date string format in another culture (e.g. "en-US" ).
    I can approach this, by changing my threads culture. 

    System.Threading.Thread.CurrentThread.CurrentCulture = usCulture

     Or using tostring

    myDate.ToString("yyyy*MM*dd")

    But is it the best method? Is there something like myDate.ToShortDateString (curCulture as CultureInfo ) [:)] ???

    Thanks
    Artashes

    Friday, September 29, 2006 11:05 AM

Answers

All replies