Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 5 of 5 total |
FormatDateTime to filter EDBQuery |
Tue, Jun 23 2015 8:39 AM | Permanent Link |
Beni | Hello,
I'm using EDBQuery in combination with the TcxGrid from DevExpress. This grid has the option to filter the displayed data and with this filter also filter the datasource of the grid. It's working well except for date fields. Good thing is that I can specify a DateTimeFormat which is going to be used by the grid to format the filter string using the FormatDateTime function but I can't find the correct format pattern to get the date in the format accepted by Elevate. The short question would be: what format pattern should I provide for the ForamtDateTime function to get a "DATE 'yyyy-mm-dd" result? |
Tue, Jun 23 2015 9:28 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Beni
You may well get an answer here (not from me because I don't use DevEx) but wouldn't you be better asking on their forums? If they use the standard Delphi Format function you could try 'DATE YYYY-MM-DD' Roy Lambert |
Tue, Jun 23 2015 1:59 PM | Permanent Link |
Beni | Roy Lambert wrote:
>>If they use the standard Delphi Format function you could try 'DATE YYYY-MM-DD' That would be easy! The problem is that the value must include single quotation mark: DATE 'yyyy-mm-dd' |
Tue, Jun 23 2015 2:11 PM | Permanent Link |
Beni | Let's forget DevExpress for the moment. I could translate my initial post into this question:
What date pattern should I add into a FormatDateTime function in order to get a string in the elevate date formate (DATE 'yyyy-mm-dd') |
Tue, Jun 23 2015 2:16 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Beni
I assume that whatever version of Delphi you're running will code with showmessage(FormatDateTime('"DATE" "''"YYYY-MM-DD"''"',Now)); no idea about DevEx Roy Lambert |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |