On Sat, Oct 18, 2003 at 10:21:03PM +0530, Jitender Kumar C wrote: > Hi, > I want to extract date part (mm/dd/yy or any other date format) of > Timestamp in postgreSQL. Can anyone help me out how I can > proceed?.
SELECT your-timestamp-value::date or, more standard, SELECT CAST(your-timestamp-value AS date) -- Alvaro Herrera (<alvherre[a]dcc.uchile.cl>) "When the proper man does nothing (wu-wei), his thought is felt ten thousand miles." (Lao Tse) ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html