Well I created an extension method:

Function asDate(extends s as SQLDatETimeMBS) As Date  
  return new Date(s.GetYear, s.GetMonth, s.GetDay, s.GetHour, s.GetMinute, 
s.getSecond)
End Function



On 06.02.2014, at 11:10, Christian Schmitz <[email protected]> 
wrote:

> 
> Am 06.02.2014 um 10:59 schrieb Massimo Valle <[email protected]>:
> 
>> 
>> Is there a simple way to convert a SQLDateTimeMBS to a Xojo.Date without 
>> setting Year,Month and everything else one by one?
> 
> I can add functions.
> 
>> I tried doing Date.SQLDateTime = SQLDateTimeMBS.StringValue but this only 
>> works for the date, the hour is ignored.
>> Btw, the format is different:
> 
> why not
> 
> dim d as new date(dt.year, dt.month...
> 
> 
> Sincerely
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info



SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: [email protected]
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, 
Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to