473,503 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem in mysql date_format

83 New Member
Hi

In my table the date format is changed to 06-feb-2007.The query i execute is

select date_format(col.name,"%e-%b-%Y") from tablename;

This is worked well in local but in the web it will give the error. If we change the %b to %m ,its worked as both local and web also .but i want the date in format of 06-feb-2007. What can i do for this .Please any one help to do that in web.

Thanks in Advance
Sang
Feb 6 '07 #1
1 1859
ronverdonk
4,258 Recognized Expert Specialist
What do you mean by "In my table the date format is changed to 06-feb-2007"?
06-feb-2007 is not a date format, it is only the representation of a date.

So the question is: what is the data type of your date column?

Ronald :cool:
Feb 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3009
by: Ricki Susic | last post by:
$result = mysql_query("SELECT ID, tekst, date_format(dato, '%Y %m %d') FROM henriks ORDER BY ID DESC LIMIT 0,3"); Why doesn't my date show when I print the result? Ricki
8
1771
by: JDJones | last post by:
I am entering some older things in a database for the first time. Included in the information I need to enter is the month and year the item was submitted. Ideally I'd like to be able to enter the...
2
1522
by: Phil Nospam | last post by:
Hello all, I was browsing through the reference manual on the mysql.com web site and found the following code examples for some date/time functions: mysql> SELECT STR_TO_DATE('00/00/0000',...
2
1601
by: Ray in HK | last post by:
I have a table that have a date field as the pri key. Now I want to update the record that is last record for each month. Is it possible to do it in 1 single SQL statement ? table t d_Date...
4
1556
by: svein.tjonndal | last post by:
I have the following query: select DATE_FORMAT(accountingdate,"%c") as month,sum(totalprice - freightcost - insurancecost - vat2 - vat3 - vat4) as totalprice from invoice where cancelled=0 and...
2
6755
by: vncntj | last post by:
I'm trying to get the venue in the 'List' column when in contains a value. But if the venue Is Null then place the event in the 'List' SELECT CASE WHEN event Is Null THEN venue Else event...
0
1998
by: xkp | last post by:
i am having problems with this query which worked perfrcly on mysql 3.0. It is able to extract dowloaders from a table and group them by date. select count(*) AS downloaders,...
16
2384
by: laverdir | last post by:
<? $query = "SELECT " . $this->tabela3 . ".id, " . $this->tabela3 . ".naziv, " . $this->tabela3 . ".spisatelj, " . $this->tabela3 . ".najava, " . " DATE_FORMAT(" . $this->tabela3 ....
4
2411
by: Michael Sharman | last post by:
Hi guys, I'm a little confused with dates. Ok, all I want to do is store a date in MySQL as a datetime object and be able to read and format it using PHP. My datatype in MySQL is DATETIME and...
3
3527
by: janetopps | last post by:
I have a news website, with asp pages, which was on Access, and i upgraded to MySQL, i used Bullzip to transfer the data. It had about 1000 pages, which im now able to pull up on the public side. Im...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.