Hi,
In Odoo Online you can make use of the Odoo Studio app to do this. To do that please follow the below steps:-
1) Go to settings and turn on the developer mode by clicking the "Activate the developer mode" button under the Developer Tools
2) Now go to the view in which you need to add the field.
3) Now switch to studio mode by clicking on the "Toggle Studio" button found in the top right corner.
4) Now add and name one date field and an integer field using the studio. (You can refer to Odoo Studio Book for help: rec.x_studio_input_date.strftime('%j')"
8) Now you can save it and close the studio view.
Now the integer field will show the day of the year when the value in the input date field is changed
Regards