dbTalk Databases Forums  

Current Year, Month, Day

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Current Year, Month, Day in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marco Linders
 
Posts: n/a

Default Current Year, Month, Day - 07-11-2003 , 04:14 AM






Hello all,

Is it possible to get the current year or month or day woth a function
within a calculatad member?

For example, when I want to know the current year (based on for example
the systemclock), can I use something like:

Year(Date())? Or any other function?

So I don't want to use my time dimension.

Thanks in advance.
Marco.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #2  
Old   
Vincent
 
Posts: n/a

Default Re: Current Year, Month, Day - 07-11-2003 , 04:39 PM






year(now())

--vincent

Quote:
Marco Linders<m.linders (AT) pforb (DOT) com> 7/11/2003 4:14:21 AM
Hello all,

Is it possible to get the current year or month or day woth a function
within a calculatad member?

For example, when I want to know the current year (based on for example
the systemclock), can I use something like:

Year(Date())? Or any other function?

So I don't want to use my time dimension.

Thanks in advance.
Marco.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.