Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Apr 17, 2000

Sorting by Year From a Date Column

Question:
How do I sort by year a datawindow that already sorts in ascending or descending? (The field is in mm/dd/yy format.)

Answer:
Create a computed column on the datawindow and extract the year portion of the date field [e.g., Year( my_col )]. Then you can sort by the computed column.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date