Date Components

You think you know exactly how the date functions DATE2DMY and DATE2DWY in C/SIDE work, don’t you? So did I, but take a look at the following example. Things are more complex than I thought, and C/SIDE is cleverer than I anticipated.