Quantcast
Channel: SCN : All Content - SAP IQ
Viewing all articles
Browse latest Browse all 716

SAP IQ - Day of the Week Function Issue

$
0
0

Hi

 

 

Can someone please help

Trying to set the first day of the week to be MONDAY

Title

Set first day of week – DOW()

 

 

 

 

Description

 

We have code that uses the following code to identify the day of the week :-

 

Select datepart(dw,getdate()).

 

Select DOW(getdate()).

 

 

 

Business requires that the first day of the week in Monday .

 

We can get datepart(dw,getdate()) to do this by setting option First_Day_Of_Week to 1.

 

However this setting has no impact on DOW(getdate()) ;

 

We tried setting the value of Date_First_Day_Of_Week, this  option has no impact on DOW(getdate()) or  datepart(dw,getdate()).

 

How do we impact output of DOW function to set first day of week to Monday?

 

Version

 

16.0.0.809/150327/P/sp08.30/Enterprise Linux64 - x86_64 - 2.6.18-194.el5/64bit/2015-03-27 16:04:28

Many Thanks

 

Ade


Viewing all articles
Browse latest Browse all 716

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>