Unix Technical Forum

date without time

This is a discussion on date without time within the MySQL forums, part of the Database Server Software category; --> whenever i output my sql tables to html, the date column has the date followed by 00:00:00.00, does anyone ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 08:35 AM
Kun
 
Posts: n/a
Default date without time

whenever i output my sql tables to html, the date column has the date
followed by 00:00:00.00, does anyone know how to remove that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 08:35 AM
Bill Karwin
 
Posts: n/a
Default Re: date without time

Kun wrote:
> whenever i output my sql tables to html, the date column has the date
> followed by 00:00:00.00, does anyone know how to remove that?


Would the DATE_FORMAT() function help?

See http://dev.mysql.com/doc/refman/5.0/...functions.html

Regards,
Bill K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 08:36 AM
Kun
 
Posts: n/a
Default Re: date without time

Bill Karwin wrote:
> Kun wrote:
>> whenever i output my sql tables to html, the date column has the date
>> followed by 00:00:00.00, does anyone know how to remove that?

>
> Would the DATE_FORMAT() function help?
>
> See http://dev.mysql.com/doc/refman/5.0/...functions.html
>
> Regards,
> Bill K.


but why isn't the 'date' column operating as it is suppose to? it seems
like it is turning itself into 'datetime' when it is suppose to be
'date'....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 08:36 AM
Bill Karwin
 
Posts: n/a
Default Re: date without time

Kun wrote:
> but why isn't the 'date' column operating as it is suppose to? it seems
> like it is turning itself into 'datetime' when it is suppose to be
> 'date'....


What are you using to produce the HTML output? MySQL doesn't do this by
itself, so you must be using some tool or something. Perhaps it is
doing the conversion of DATE to DATETIME inappropriately?

Regards,
Bill K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com