Re: [GENERAL] Extracting date from timestamp

2005-05-06 Thread Richard Huxton
Nageshwar Rao wrote: How to extract date(mm/dd/yyy) from a timestamp . See chapter 9.8. Data Type Formatting Functions, all about to_char() If you just want your preset format you can use SELECT now()::date; -- Richard Huxton Archonet Ltd ---(end of broadcast)---

Re: [GENERAL] Extracting date from timestamp

2005-05-06 Thread Michael Fuhr
On Fri, May 06, 2005 at 06:26:14PM +0530, Nageshwar Rao wrote: > > How to extract date(mm/dd/yyy) from a timestamp . You could cast the timestamp to date. See also "Data Type Formatting Functions" and "Date/Time Functions and Operators" in the "Functions and Operators" chapter of the documentatio

[GENERAL] Extracting date from timestamp

2005-05-06 Thread Nageshwar Rao
Title: Extracting date from timestamp How to extract date(mm/dd/yyy) from a timestamp .