Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
Problems with Comparation of dates.
Toni Almagro
2007-01-29 04:56:50.0
Hi,
I am an employee of Concatel that recently adquired HXTT Acces v3.1.
I have problems when I try to comparate two dates.

Please can you send me, some examples of comparate dates and parsing dates in
java code please.

Thanks


Toni Almagro
jantonio.almagro@concatel.com

Concatel Vanture Team
Av. Ports d'Europa,100 - 08040 Barcelona (Spain)
tel. +34.93.567.97.10
fax +34.93.567.97.11
Re:Problems with Comparation of dates.
HXTT Support
2007-01-29 05:26:47.0
For instance,
where date1>{d '2006-01-30'}

where date1
...

What's your wrong sample?
Re:Re:Problems with Comparation of dates.
Toni Almagro
2007-01-29 06:28:10.0

Hi,
This is my code. I am trying to select the max(valor1) with the
clausule table.variable >= {ts 'date'}. The format of data is
yyyy-mm-dd hh:mm:ss.

SELECT MAX(valor1) FROM ["+archive+"].DataCertificacio
WHERE (DCE_VPL_ID = 1 AND DCE_SIS_ID =5
AND DataCertificacio.DCE_Data >= {ts '"+valor+"'} )";
Re:Re:Re:Problems with Comparation of dates.
HXTT Support
2007-01-29 07:31:49.0
Your sql seem to be correct.
You should use System.out.println("SELECT MAX(valor1) FROM ["+archive+"].DataCertificacio
WHERE (DCE_VPL_ID = 1 AND DCE_SIS_ID =5
AND DataCertificacio.DCE_Data >= {ts '"+valor+"'} )");

to see what's valor. It need to be a string with "yyyy-mm-dd hh:mm:ss" format.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap