As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
I think he's trying to convert it to YY at the same time.. I hate date conversions and I have the damn book on it. When a language has a book on just date conversions, it should be a wake up call, that just maybe that needs to be simplified.
- FOCUS Man, just FOCUS! ----------------------------- Product: WebFOCUS Version: 8.1.04 Server: Windows 2008 Server
Originally posted by GavinL: I think he's trying to convert it to YY at the same time.. I hate date conversions and I have the damn book on it. When a language has a book on just date conversions, it should be a wake up call, that just maybe that needs to be simplified.
Hallelujah! So I'm not alone after all. I have that date book too, and I was using it today (Or trying to, anyway). WebFOCUS date handling is perpetually confusing!
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
This thread raises several Date related questions. I will try to assist in as many as I can.
DATE COMPLICATION: Because WebFOCUS connects to virtually all database systems, they support many different date formats. These include Alphanumeric dates, Integer dates (Packed and Floating point and Double precision as well). As a general rule the above formats will respect the year component when sorting ONLY when the year is first in the format. As advanced date components, WebFOCUS supports SmartDate (aka Date) and DateTime formats. These are stored internally as some form of elapsed days with a decimal value for the Time component. As a result they are sorted correctly no matter where the year component is displayed. FUNCTION USE: There are different functions for each date format. You must use the correct function for the format used (note in 8.1.05 several function are introduced the work with both SmartDate and DateTime formats). EMBEDDING FIELD values: Column titles can not display embedded fields. You can accomplish this if the date is a sort value and then embedding the field in a SUBHEAD or SUBFOOT. DIALOGUE MANAGER: DM variable are resolves at the time the focexec is compiled. They do not change with sort breaks. Good luck to all.
WebFOCUS 8.0.2, FOCUS since 1977 - John@Aviter.com PDF , Excel, FOCUS, Author of the Keysheets and Dates book. www.Aviter.com