PFC Guide Titlebar
HomeFAQLinksPFCMAGExtensionsDownloadWhat's NewSearch

ISO Calendar Extension

Ver. 1.00
Contributed by Boris Gasin

This extension is part of an article published in the February 98 Issue of PowerTimes magazine.




PFC calendar object displays days of the week Sunday through Monday.  According to the International Organization for Standardization (ISO) Monday is the first day of the week. The purpose of this extension is to allow the calendar object to comply with either convention.

ext_0013_fig7.gif (2976 bytes) ext_0013_fig8.gif (3056 bytes)


To allow the configuration of the  u_calendar display style following functions were added:

Used to switch between the default (Sunday first ) and ISO (Monday first) display styles.  Valid arguments are DISPLAY_ISO and DISPLAY_DEFAULT
Replacement for DayNumber().  Returns ISO friendly day number.
mon - 1,  tue - 2, ...  sun - 7
Overridden the ancestor function to draw the ISO style month.
Overridden the ancestor function.   Modified to reference the of_isodaynumber when appropriate.

Usage :

The calendar will default to the original (Sunday first) display style.  If ISO display style is required set it using the of_setDisplayStyle() function.


To return to the original display style call the function once more with DISPLAY_DEFAULT argument:




Download the About the extension contributor


Revision History
03/02/1998 Initial Revision Ver. 1.00

Interested in contributing material to this web site? Send an email to, but don't forget to check the contribution guidelines first.

For information or suggestions about this web site please contact

PFCGuide is sponsored by Dynamic Technology Group.
The information on this site is provided for advice only and not to be considered a contract or a liability against Dynamic Technology Group.

Last Revised: February 15, 2004 03:58 AM.