How to find the week number of the date

By | November 30, 2017

We came across the requirement where client want to calculate the week number of the date provided for the further calculation.

We have Week(date) which will return you the week number  of the provided date.

For example: I am running this query on 30/10/2017.

Script to find the week number

Img: Script to find the week number.

Hope this helps.


About Us

Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix have some unique solutions of Sage X3 integration with Sage and Magento eCommerce along with Sage X3 migration from Sage 50 US, Sage Pro and QuickBooks.  We also offer best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at We will be glad to assist you.