Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 8th, 2008, 11:37 AM
Newbie
 
Join Date: Sep 2008
Posts: 1
Default weekday from timestamp?

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
Reply
  #2  
Old September 8th, 2008, 11:59 AM
Moderator
 
Join Date: Dec 2006
Posts: 250
Default

Maybe like that

Select extract(dow from your_date);
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles