Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index



----Origineel Bericht----
Van : oolst@nouenoff.nl
Datum : 28/02/2018 13:21


readydate = oResult.getTimestamp(2)
werkt niet,

Stukje code met juiste oplossing - vermoed ik:

   For i = 1 To n
     Select Case oMeta.getColumnType(i)
     Case com.sun.star.sdbc.DataType.DATE
        oData2(i) = CStr(UNODateToDate(oResult.getDate(i))) 
..
..

Helaas, werkt niet. Gegevens komen van MS-SQL. Heb in de ms-sql query CAST op de datumvelden gezet 
zodat ik alleen datum terug krijg dat is dus ook het geval.Tijd had ik niet nodig,
"SELECT CAST(""ReqDate"" AS DATE), ""DocNum"",..... FROM.... 

als ik de datum velden als string binnen haal dan gaat dat goed maar ik moet ze uiteindelijk in de 
database wel als datum hebben....

/Rob






-- 
Unsubscribe instructions: E-mail to users+unsubscribe@nl.libreoffice.org
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/nl/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.