select cast(to_char(current_timestamp, 'd') as integer)/5;
On 12/06/03, Michal Durys (joe(at)anime(dot)com(dot)pl) wrote:
> I'd like to convert timestamp and date fields to intergers.
> Unfortunately cast() says it's impossible:
--
Rory Campbell-Lange
<rory(at)campbell-lange(dot)net>
<www.campbell-lange.net>