<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Jun 2020 10:51:59 Z</lastBuildDate><pubDate>3 Jun 2020 06:28:05 Z</pubDate><description>Hi I am using Windev 25 with a MSSQL data base with the following code.&#13;
&#13;
dsConsds is Data Source&#13;
sConstring is string&#13;
bConsbyte is boolean&#13;
sConstring = "select recordidentfier,conno,date_date,receivingtown,postcode,reczone,carrierservice,seczone,sendzone,sellcharge,buycharge,carriercharge,totweight,sellchargeweight,buychargeweight,cubic,Receiver,errortype,sendzone,validated from cons where clientid = %1 and carrier = '%2' and carrieraccount = '%3' and validated = %4"&#13;
sConstring= StringBuild(sConstring,TABLE_custlist.COL_Clientis,TABLE_Carrierslist.COL_Carrier,TABLE_Carrierslist.COL_Account,bValidated)&#13;
&#13;
TableDeleteAll(TABLE_conslist)&#13;
bConsbyte = HExecuteSQLQuery(dsConsds,sConstring)&#13;
IF bConsbyte = True THEN&#13;
	FOR EACH dsConsds &#13;
		TableAddLine(TABLE_conslist,dsConsds.recordidentfier,dsConsds.conno,dsConsds.errortype,dsConsds.date_date,dsConsds.receivingtown,dsConsds.postcode,dsConsds.carrierservice,dsConsds.sendzone,dsConsds.reczone,dsConsds.seczone,dsConsds.sellcharge,dsConsds.buycharge,dsConsds.carriercharge,dsConsds.totweight,dsConsds.sellchargeweight,dsConsds.cubic,dsConsds.receiver,dsConsds.validated )&#13;
		&#13;
	END&#13;
END&#13;
&#13;
HourGlass(False)&#13;
&#13;
I retrieves the data and adds it to a memory table all the returned data is correct except for the date, it seems that the data source does not allow a big enough field &#13;
&#13;
dsConsds	_SOURCE_dsConsds_3	 &#13;
recordidentfier	285	 &#13;
conno	PDU100000004  	 &#13;
date_date	2020-03-	 &#13;
receivingtown	WINNELLIE	 &#13;
postcode	0820	 &#13;
reczone	DWN       	 &#13;
carrierservice	EXPRESS	 &#13;
seczone	         	 &#13;
sendzone	ADL      	 &#13;
sellcharge	29.02	 &#13;
buycharge	29.02	 &#13;
carriercharge	0	 &#13;
totweight	40	 &#13;
sellchargeweight	0	 &#13;
buychargeweight	0	 &#13;
cubic	0.16	 &#13;
Receiver	ENZED DARWIN WINNELLIE	 &#13;
errortype	NO SELL OR BUY  TNTEXP  P  S 	 &#13;
Sendzone2	ADL      	 &#13;
validated	0	 &#13;
&#13;
This is the data received the date_date is truncated, it is cutting off the day does anyone have any suggestions</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source/read.awp</link><title>Data source</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>PeHoBe</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source-67866/read.awp</comments><pubDate>8 Jun 2020 10:51:59 Z</pubDate><description>Hi Kel,&#13;
&#13;
If it is defined as a date type column is SQL server it should come in as a date in WX. Maybe it concerns a UTC datet…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source-67866/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source-67866/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source/read.awp">Data source</source><title>Re: Data source</title></item><item><author>markus.strauss</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source-67864/read.awp</comments><pubDate>4 Jun 2020 15:42:47 Z</pubDate><description>Well obviously you receive the date from SQL Server in a format like yyyy-mm-dd (in a string), whereas the Date variable is init…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source-67864/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source-67864/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67859-data-source/read.awp">Data source</source><title>Re: Data source</title></item></channel></rss>
