Connecting Tech Pros Worldwide Forums | Help | Site Map

weekday from timestamp?

Newbie
 
Join Date: Sep 2008
Posts: 1
#1: Sep 8 '08
hi,

im strugling with my dataset..

got a small pgsql db with a timestamp column in format YYYY:MM:DD HH:MM:SS for each record

how could i possibly return day of the week for every one of these records?

any help will be much appreciated
cheers
r

Moderator
 
Join Date: Dec 2006
Location: Europe
Posts: 293
#2: Sep 8 '08

re: weekday from timestamp?


Maybe like that

Select extract(dow from your_date);
Reply