http://msdn.microsoft.com/en-us/library/az4se3k1.aspx

// Display using current (en-us) culture's short date format
DateTime thisDate = new DateTime(2008, 3, 15);
Console.WriteLine(thisDate.ToString("d"));           // Displays 3/15/2008


using System;using System.Globalization;
public class Example
{
   public static void Main()
   {
      Console.WriteLine("'d' standard format string:");
      foreach (var customString in
DateTimeFormatInfo.CurrentInfo.GetAllDateTimePatterns('d'))
          Console.WriteLine("   {0}", customString);
   }
}// The example displays the following output://       'd' standard
format string://          M/d/yyyy//          M/d/yy//
MM/dd/yy//          MM/dd/yyyy//          yy/MM/dd//
yyyy-MM-dd//          dd-MMM-yy


Do it, do it, do it with C#.... hit that DateTimeFormat in code! :P




On Mon, Sep 26, 2011 at 1:33 AM, was <[email protected]> wrote:

> How do I make all dates display in the 'Settings>Date & Time>Select date
> format' date format in my app?
>
> Regards...Andrew
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/Date-Format-in-Monodroid-tp4838662p4838662.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>



-- 
Glen Hassell
Inner Technique
http://innertech.com.au/
Office: 03 9687 0006
Mobile: +61 (0) 438 340 385
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to