<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=ScriptCore3.DayOfWeek</id>
		<title>ScriptCore3.DayOfWeek - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=ScriptCore3.DayOfWeek"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ScriptCore3.DayOfWeek&amp;action=history"/>
		<updated>2026-05-05T23:19:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=ScriptCore3.DayOfWeek&amp;diff=1189&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ScriptCore3.DayOfWeek&amp;diff=1189&amp;oldid=prev"/>
				<updated>2013-08-25T08:30:02Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;  '''function DayOfWeek(const DateTime: [[TDateTime]]): Word;'''&lt;br /&gt;
  DateTime: Source date&lt;br /&gt;
  Result: Number of the day of the week&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function will return number representing day of the week, from 1-7 range.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  curr: TDateTime;&lt;br /&gt;
  currweekday: string;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
  curr := Date();&lt;br /&gt;
  case DayOfWeek(curr) of&lt;br /&gt;
   1: currweekday := 'Monday';&lt;br /&gt;
   2: currweekday := 'Tuesday';&lt;br /&gt;
   3: currweekday := 'Wednesday';&lt;br /&gt;
   4: currweekday := 'Thursday';&lt;br /&gt;
   5: currweekday := 'Friday';&lt;br /&gt;
   6: currweekday := 'Saturday';&lt;br /&gt;
   7: currweekday := 'Sunday';&lt;br /&gt;
  end;&lt;br /&gt;
  &lt;br /&gt;
  WriteLn('Today is '+currweekday+' '+FormatDateTime('c',Now()));&lt;br /&gt;
end.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Functions]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>