If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Retrieving previous month as date NOT interger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-09, 05:37
bratsela bratsela is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Retrieving previous month as date NOT interger

HI there

Can anyone please help with a function on Informix to retrieve previous month as date not interger .

any help will be appreicated

Regards,
Brian
Reply With Quote
  #2 (permalink)  
Old 03-31-09, 04:41
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
can you be more specific? put here some example
Reply With Quote
  #3 (permalink)  
Old 03-31-09, 05:11
bratsela bratsela is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
cool the function " MONTH(DATE) - would return the previous month function as an interger , thus , I looking for a similar function which will return the previous month as month , as "November" instead of "11".

let me know if you need further details
Reply With Quote
  #4 (permalink)  
Old 03-31-09, 10:18
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
Code:
to_char(date_column,"%B")
or
Code:
to_char(date_column,"%b")
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On