Home  |  Delphi .net Home  |  System.Globalization.DateTimeFormatInfo  |  GetAbbreviatedDayName Method
  
GetAbbreviatedDayName  
Method  
Gets the abbreviated name for a Day of the Week
DateTimeFormatInfo Class
System.Globalization NameSpace
CF1.  Function GetAbbreviatedDayName ( Day : DayOfWeek ) : String;
CF : Methods with this mark are Compact Framework Compatible
Description
Converts the Day enumerated value into the appropriate 3 character day of week string.
Microsoft MSDN Links
System.Globalization
System.Globalization.DateTimeFormatInfo
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

uses
  System.Globalization;

var
  dateFormatInfo : System.Globalization.DateTimeFormatInfo;
  day            : System.DayOfWeek;

begin
  dateFormatInfo := DateTimeFormatInfo.Create;
  day            := System.DayOfWeek.Saturday;

  Console.WriteLine('Saturday abbreviates to {0}',
                    dateFormatInfo.GetAbbreviatedDayName(day));

  Console.ReadLine;
end.
   Saturday abbreviates to Sat
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author