Skip to Content
author's profile photo Former Member
Former Member

days

converting a crystal syntax to Universe Object.

Age Days >>> CurrentDate - {EMPLOYEE.BIRTH_DATE}

Back end is SQL 2008. Please help me out.

I tried using the code : getdate() - EMPLOYEE.BIRTH_DATE in Universe Object, But in the report it shows just date ( example : 04/25/0 , 05/01/00 etc.....)

In back end for Birth_date the data looks like 1988-02-23 00:00:00:000

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 02:50 PM

    looking like it is a format issue in the report. in the report, what is the format for the objects. make sure it should be number.

    in the report, right click on the object and format and change it to number.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 03:05 PM

    Can you see the List of Values at Universe level?? How the Date format is??

    Can you see Timestamp also here.

    Click on date object -- Properties-- Edit/Display

    @ Report:

    Select the column (mean Date object) and go to Properties, Number format-- Date/Time-- Here select the format how you want to see...

    Basically,

    Getdate() from SQL Server not carrying timestamp.

    And WebI report level CurrentDate() also.

    Thank You!!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2010 at 02:54 PM

    FLOOR(DATEDIFF(dd,EMPLOYEE.BIRTH_DATE,GETDATE())/365)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Is that Parsed Ok??

      YES, then go to Properties of that Object. Next tab(name I forgot), you can see Display(to see all LOV's), just check you are getting as you expected or not?

      Thank You!!

      Sent from iPhone

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.