If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > date_format?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-03, 06:10
jayson_13 jayson_13 is offline
Registered User
 
Join Date: Mar 2003
Posts: 4
date_format?

hi,

how can i format date in the format i want?
i want to do something like this:
select invoice#, amount from invoice where invoiceDate >= date_format(31/08/2003, "dd/MM/yyyy")

i am using vb to connect to paradox that is y i need to contruct sql statement into something like this.
thanks!
Reply With Quote
  #2 (permalink)  
Old 09-15-03, 17:31
Maroonotmoron Maroonotmoron is offline
Registered User
 
Join Date: Sep 2003
Location: Dallas
Posts: 182
If you mean the default date display, it is a BDE setting.

MODE: Controls the order of the month, day, and year components. Set it to
0 : (for MDY)
1 : (for DMY)
2 : (YMD)

You can also set up leading zero's and four digit year in the BDE setting.

Access via control panel.
Reply With Quote
  #3 (permalink)  
Old 09-15-03, 17:38
Maroonotmoron Maroonotmoron is offline
Registered User
 
Join Date: Sep 2003
Location: Dallas
Posts: 182
If you only need to format the date on the fly then the command would be:
format("DO(%D/%M/%Y)",da)

Place the DMY in the desired order.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On