Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fornmat a datetime

Status
Not open for further replies.

plork123

Programmer
Mar 8, 2004
121
GB


hi all

can someone tell me how i format a datetime field so it's like this

'Thurday 22 June 2006'

many thanks
 


thanks - why do i get a massive gap between the month and year?

"Thursday 22 June 2006
 


i'll do it like this, but would be interested to know why there's a gap

SELECT
TO_CHAR(now(), 'Day') || ' ' ||
DATE_PART('DAY', now()) || ' ' ||
RTRIM(TO_CHAR(now(), 'Month'))|| ' ' ||
DATE_PART('YEAR', now()) AS date
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top