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 > Data Access, Manipulation & Batch Languages > ANSI SQL > Format Date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-04, 10:28
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Format Date

I want to insert today's date into database. The date format must be something like this 02 September 2004

How can I write sql ? I tried
dim d
d=formatDateTime(Date,1)
sql="insert into datagraph(dat ) values('"&d&"')"

But the result is Thursday, September 02,2004. It doesn't what I want.
I want 02 September 2004 .

I am so so .....tired with sql !! :-(
Reply With Quote
  #2 (permalink)  
Old 09-02-04, 11:12
urquel urquel is offline
Registered User
 
Join Date: Aug 2004
Posts: 330
You may want to pose this question in the forum for your specific DBMS, so that the date format can be addressed for that system.
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