<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 Nov 2015 06:38:00 Z</lastBuildDate><pubDate>10 Nov 2015 12:07:00 Z</pubDate><description>Hi&#13;
&#13;
Anybody know how I can add x number of days to a date field through a query.&#13;
&#13;
I want to get something like this&#13;
&#13;
SELECT LastServiceDate, LastServiceDate + ServiceInterval from Service&#13;
&#13;
The service interval can be between 30 or 360 and I want to get the machines due for a service in this month.&#13;
&#13;
I have tried with CAST but you cannot cast a date to an integer and back so there must be some other trick.&#13;
&#13;
Thanks in advance.&#13;
&#13;
&#13;
&#13;
Ericus Steyn</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates/read.awp</link><title>[WB19] SQL and Dates</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54901/read.awp</comments><pubDate>11 Nov 2015 06:38:00 Z</pubDate><description>Hi Ericus,&#13;
&#13;
do not use "between" when you the field is datetime . depend on the database server that you using, you may endup …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54901/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54901/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates/read.awp">[WB19] SQL and Dates</source><title>Re: [WB19] SQL and Dates</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54888/read.awp</comments><pubDate>10 Nov 2015 13:44:00 Z</pubDate><description>Hi Ericus,&#13;
In this case the Piet solutions is the best one but if your db is in HFSQL you can use WLanguage functions in the SQ…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54888/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54888/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates/read.awp">[WB19] SQL and Dates</source><title>Re: [WB19] SQL and Dates</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54887/read.awp</comments><pubDate>10 Nov 2015 13:14:00 Z</pubDate><description>Thanks Piet&#13;
&#13;
Will give it a try.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54887/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54887/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates/read.awp">[WB19] SQL and Dates</source><title>Re: [WB19] SQL and Dates</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54886/read.awp</comments><pubDate>10 Nov 2015 12:20:00 Z</pubDate><description>Hi Ericus,&#13;
&#13;
You don't need to add anything in SQL, just use:&#13;
"SELECT * FROM Service WHERE LastServiceDate BETWEEN '%1' AND '%…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54886/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates-54886/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54885-wb19-sql-and-dates/read.awp">[WB19] SQL and Dates</source><title>Re: [WB19] SQL and Dates</title></item></channel></rss>
