Add week numbers to Calendar / Date Time field

[ad_1]

Hello @natedanielz

You cannot do it directly into the calendar. But you can get this information with calculated fields.

For example, if you have the date field fieldname123, you can:

Insert a calculated field to get the week number by entering the equation:

WEEKNUM(fieldname123);

You can get the first and last week’s dates (assuming the week begins on Sunday) by inserting a calculated field and entering the equation:

CONCATENATE(
CDATE(fieldname123-WEEKDAY(fieldname123)+1, 'dd/mm/yyyy'),
' - ',
CDATE(fieldname123+7-WEEKDAY(fieldname123), 'dd/mm/yyyy')
)

Note you can configure the calendar field to allow the users to select only one day in the week (for example, Sundays)

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer