<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Working with dates' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Working with dates' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 23:07:19 -0700</pubDate>
    <lastBuildDate>Fri, 24 May 2013 23:07:19 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Working with dates</title>
      <link>http://www.programmersheaven.com/mb/pasprog/431237/431237/working-with-dates/</link>
      <description>Hi all I am a newbee to Pascal programming and have spent the entire day trying to convert a string to a valid data that I can later use to subtract another date from to discover the number of days between the two dates. Can some one pls pls help me. Thank you.&lt;br /&gt;
&lt;br /&gt;
I started with this code to try to convert the first date entered in string format to a date that can be used in a calulation:&lt;br /&gt;
&lt;br /&gt;
program TryDate;&lt;br /&gt;
&lt;br /&gt;
Var&lt;br /&gt;
date1: TDateTime;&lt;br /&gt;
thedate:string;&lt;br /&gt;
&lt;br /&gt;
Begin&lt;br /&gt;
Writeln ('Enter date');&lt;br /&gt;
Readln (thedate);&lt;br /&gt;
date1:=StrToDate (thedate);&lt;br /&gt;
Writeln ('The date is ',date1);&lt;br /&gt;
end.&lt;br /&gt;
          &lt;br /&gt;
&lt;br /&gt;
The program's basic structure can be seen here:&lt;br /&gt;
&lt;br /&gt;
 Begin&lt;br /&gt;
Writeln ('Enter customer last name');&lt;br /&gt;
readln (clname);&lt;br /&gt;
Writeln ('Enter customer first name');&lt;br /&gt;
readln (cfname);&lt;br /&gt;
Writeln ('Enter Dvd Title');&lt;br /&gt;
readln (dvdtit);&lt;br /&gt;
Writeln ('Enter Due Date');&lt;br /&gt;
readln (dued);&lt;br /&gt;
Writeln ('Enter Actual Date Returned');&lt;br /&gt;
readln (adret);&lt;br /&gt;
daysover:=adret-dued;&lt;br /&gt;
readln;&lt;br /&gt;
 end. &lt;br /&gt;
&lt;br /&gt;
I am expected to expand the program further but was trying to get this small part to work before trying the other components. &lt;br /&gt;
&lt;br /&gt;
Simple instructions and examples or possible solutions will be greatly appreciated.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/431237/431237/working-with-dates/</guid>
      <pubDate>Sat, 09 Feb 2013 12:22:20 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>