Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

String to Date

$
0
0


Hello All,

 

I have created a condition in the universe "to_date(@Prompt('2.Begin Date(mm/dd/yyyy)','A',,mono,free,Not_Persistent),'mm/dd/yyyy hh24:mi:ss')

 

In the report level, i have created a variable "Prompted Start Date" and datatype is string.

 

Prompted Start Date = UserResponse([Past Changes] ;"2.Begin Date(mm/dd/yyyy)")

 

I have created another variable on top of it which is also a string.

 

Start Date = If([Prompted Start date]= "YESTERDAY") Then FormatDate(RelativeDate(CurrentDate();-1);"MM/dd/yyyy") Else [Prompted Start date]

 

Currently it is displaying "MM/dd/yyyy 12:00:00".  I want to convert string into date i.e. MM/dd/yyyy

 

 

 

Sandy R


Viewing all articles
Browse latest Browse all 5402

Trending Articles