Garayed.com  

Go Back   Garayed.com > Oracle
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-06-2006, 10:32 PM
Kevin Blount
 
Posts: n/a
Default to_char not returning 'day' value without leading zero

I have the following query, which returns dates, but those dates
contain leading zeros for the DD part, even though I'm using the
fill_mode FM, i.e. FMDD

SELECT
to_char(date_created,'FMMM/FMDD/YYYY') as date_joined,

FROM
user_table

GROUP BY
to_char(date_created,'FMMM/FMDD/YYYY')

ORDER BY
MIN(date_created) DESC"

the results I get are like this: 3/08/2006

this page: http://www.techonthenet.com/oracle/f...ns/to_char.php -
tells me that adding FM before my date parts will remove the leading
zero - and as you can above, the leading zero from the MM part is gone,
but it's still there for the DD part.

anyone know how to remove this? I could do a simple ASP replace truck,
and looks for any "/0" and replace with "/", but that seems
unncessary... but then again, it FMDD won't work....

TIA for any help you can give

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 11:47 PM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.