<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Jahrestag Berechnen]]></title><description><![CDATA[<p>Hi,</p>
<p>in excel habe ich diese schöne forml um einen jahrestag zu berechnen:</p>
<p>=TEXT(B4-DATUM(JAHR(B4);1;0);&quot;000&quot;)</p>
<p>Aus dem 10.11.2004 wird z.B. 315.</p>
<p>Wie kann ich so eine Funktion mit dem C++ Builder schreiben? Habe da keinen Schimmer.</p>
<p>Hannes</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/98701/jahrestag-berechnen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 04:09:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/98701.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jan 2005 15:58:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Jahrestag Berechnen on Fri, 21 Jan 2005 15:58:31 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>in excel habe ich diese schöne forml um einen jahrestag zu berechnen:</p>
<p>=TEXT(B4-DATUM(JAHR(B4);1;0);&quot;000&quot;)</p>
<p>Aus dem 10.11.2004 wird z.B. 315.</p>
<p>Wie kann ich so eine Funktion mit dem C++ Builder schreiben? Habe da keinen Schimmer.</p>
<p>Hannes</p>
]]></description><link>https://www.c-plusplus.net/forum/post/702579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/702579</guid><dc:creator><![CDATA[Hannes Ker]]></dc:creator><pubDate>Fri, 21 Jan 2005 15:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to Jahrestag Berechnen on Fri, 21 Jan 2005 16:05:30 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>in Builder hast du den Datentyp TDateTime, der dir da viel arbeit abnimmt. Beispiel :</p>
<pre><code class="language-cpp">TDateTime Datum;
TDateTime Jahr;
int Tage;

try
{
  Datum = StrToDate(&quot;10.11.2004&quot;);
  Jahr = StrToDate(&quot;1.1.2004&quot;);
  Tage = Datum - Jahr +1;
  }
catch(...)
{
  // Umwandlung in Datum fehlgeschlagen
  }
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/702586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/702586</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 21 Jan 2005 16:05:30 GMT</pubDate></item><item><title><![CDATA[Reply to Jahrestag Berechnen on Fri, 21 Jan 2005 16:16:07 GMT]]></title><description><![CDATA[<p>Ab BCB6 gibt's zusätzlich eine DateUtils.hpp mit so netten Sachen wie DayOfTheYear etc.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/702600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/702600</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 21 Jan 2005 16:16:07 GMT</pubDate></item></channel></rss>