{"id":9271,"date":"2016-09-17T09:42:27","date_gmt":"2016-09-17T09:42:27","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=9271"},"modified":"2016-09-17T09:42:27","modified_gmt":"2016-09-17T09:42:27","slug":"how-to-find-the-day-of-the-week","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/09\/17\/how-to-find-the-day-of-the-week\/","title":{"rendered":"How to Find the DAY of the Week"},"content":{"rendered":"<p>This function is one of the date function which will return the DAY number of the week from which we will be able to perform the other functionality.<\/p>\n<p><strong>Function<\/strong><\/p>\n<p>dayn(Date): The &#8220;dayn&#8221; function excepts one parameter which we need to pass the date for which we need to find the weekday number.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/Day-of-week.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-9273 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/Day-of-week.jpg\" alt=\"Day of week\" width=\"431\" height=\"60\" \/><\/a><\/p>\n<p><strong>Output:<\/strong><\/p>\n<p>These function will return you the integer value which lies between 1(Monday)-7(Sunday)<\/p>\n<p>We executed the above code on the monday which takes the current date (i.e. Date$)<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/get-day-of-week.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9274\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/09\/get-day-of-week.jpg\" alt=\"get day of week\" width=\"163\" height=\"126\" \/><\/a><\/p>\n<p>These functionality will help us to find the position of day in the week, which will helps us to calculate the other expressions.<\/p>\n<p>Hope this helps.<\/p>\n<h5 style=\"text-align: center\"><strong>About Us<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify\">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, system integrations, third party add-on development and implementation expertise.<\/p>\n<p style=\"text-align: justify\"><a href=\"http:\/\/www.greytrix.com\/\" target=\"_blank\">Greytrix<\/a>\u00a0have some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\" target=\"_blank\">Sage X3\u2019s integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\" target=\"_blank\">Salesforce.com<\/a>\u00a0and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\" target=\"_blank\">Magento eCommerce<\/a>. It also offers best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\" target=\"_blank\">Sage X3 customization and development services<\/a>\u00a0to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p style=\"text-align: justify\">For more information on Sage X3 Integration and Services, please contact us at\u00a0<a href=\"mailto:x3@greytrix.com\" target=\"_blank\">x3@greytrix.com<\/a>\u00a0.We will be glad to assist you.<\/p>\n<p><strong><em>Other Related Blogs:<\/em><\/strong><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/05\/12\/know-month-name-from-the-given-date\/\">How to know Month name from the given date?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/10\/31\/how-to-get-number-of-day-and-name-from-date\/\">How to get number of day and name from the date?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/10\/29\/how-to-know-start-date-of-week-of-any-year\/\">How to know the start date of week of any year ?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/11\/25\/how-to-restrict-users-from-modifying-the-x3-connection-date\/\">How to restrict users from modifying the X3 connection date?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/06\/08\/how-to-modify-the-posting-date-of-sage-x3-transactions\/\">How to Modify the Posting Date of Sage X3 Transactions?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This function is one of the date function which will return the DAY number of the week from which we will be able to perform the other functionality. Function dayn(Date): The &#8220;dayn&#8221; function excepts one parameter which we need to pass the date for which we need to find the weekday number. Example: Output: These\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/09\/17\/how-to-find-the-day-of-the-week\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[514,828,924,1857,1941,1942,1943,2438],"class_list":["post-9271","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-day-of-the-week","tag-find-day-in-a-week","tag-greytrix-blogs","tag-sage-x3-dayn-function","tag-sage-x3-technical","tag-sage-x3-technical-assistance","tag-sage-x3-technical-blog","tag-working-of-dayn-function"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=9271"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9271\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=9271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=9271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=9271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}