Home  |  Delphi .net Home  |  System.Globalization.DateTimeFormatInfo  |  GetDayName Method
  
GetDayName  
Method  
Gets the full name for a Day of the Week
DateTimeFormatInfo Class
System.Globalization NameSpace
CF1.  Function GetDayName ( Day : DayOfWeek ) : String;
CF : Methods with this mark are Compact Framework Compatible
Description
Converts the Day enumerated value into the appropriate full 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('{0}', dateFormatInfo.GetDayName(day));

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