<?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.TryEncodeDate</id>
		<title>ScriptCore3.TryEncodeDate - 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.TryEncodeDate"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ScriptCore3.TryEncodeDate&amp;action=history"/>
		<updated>2026-05-03T09:53:49Z</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.TryEncodeDate&amp;diff=1198&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ScriptCore3.TryEncodeDate&amp;diff=1198&amp;oldid=prev"/>
				<updated>2013-08-25T09:11:32Z</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 TryEncodeDate(Year, Month, Day: Word; var Date: TDateTime): Boolean;'''&lt;br /&gt;
  Year: Year to be encoded&lt;br /&gt;
  Month: Month to be encoded&lt;br /&gt;
  Day: Day to be encoded&lt;br /&gt;
  Date: Result of encoding&lt;br /&gt;
  Result: TRUE if encoding has been successfull&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This function is equivalent to {{link|ScriptCore3|EncodeDate}}, however, it allows to check whether encoding has been successfull or not.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note that arguments are '''not''' decimal numbers.&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;
  y,m,d: Word;&lt;br /&gt;
  currdate: TDateTime;&lt;br /&gt;
begin&lt;br /&gt;
  // today (for me) it's 25th August 2013&lt;br /&gt;
  y := 2013;&lt;br /&gt;
  m := 8;&lt;br /&gt;
  d := 25;&lt;br /&gt;
  &lt;br /&gt;
  if TryEncodeDate(y,m,d,currdate) then&lt;br /&gt;
    WriteLn(FormatFloat('0',currdate));&lt;br /&gt;
    // 41511&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>