You can calculate the Day of the Year number in C/SIDE by the difference between the date (in my example I use the current date defined by the operating system using the function TODAY) and the first day of year of the date using the CALCDATE function. You need to add 1 to the result to include the day of the date that you are using.
HOW TO calculate the Day of the Year number in C/SIDE
Number := TODAY-CALCDATE(‘<-CY>’,TODAY)+1;
If you need it as Text you need to convert it using the FORMAT function
String := FORMAT(TODAY-CALCDATE(‘<-CY>’,TODAY)+1);
Did my HOW TO help you? Leave a reply.