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

Formatting Date Prompt in a Universe (SQL Server DB)

I have a date/time field from a SQL Server database that needs to be formatted to remove the time value from the prompt and list of values. I am able to convert the field in the Universe to display the designated date format by adding the following the logic below to an Object:

convert(date,dbo.datetable.date,101)

However, when I create a prompt using the logic below the prompt value and list of values still displays the date and time.

@Select(datetable\date) = @prompt ('Date', 'D', 'datetable\date', mono, free)

'Apply on Universe' and 'Apply on List of Values is selected on the Universe.

Any help would be appreciated to find out how to remove the time display from the Prompt/List of Values.

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2015 at 06:59 PM

    Removing the datetable/date between the quotes in the @prompt statement will remove the list of values (see below).

    @prompt('Date','D',' ', mono, free)

    But when selecting the date in a WebI prompt from the Calendar view the Time is still displayed. Is it possible to remove the time selection from the Calendar view and prompt value display (Below in red)?


    date.jpg (49.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      No, it's not possible in WEBI .

      As SAP has provided UI for date selection which we can't change.

      If you want to avoid timestamp then you can go for @prompt

      Where you can include LOVs for date part only.

      I hope this can help

      Thanks,

      Swapnil

  • author's profile photo Former Member
    Former Member
    Posted on Apr 01, 2015 at 05:37 PM

    try this

    CONVERT(VARCHAR(10), GETDATE(), 101) .

    Please use your date column( tablename.datecolumn) instead of GETDATE() in above syntex.

    Thanks

    Swapnil

    Add a comment
    10|10000 characters needed characters exceeded

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.