I have two prompts one is Start date and second one is End Date,
These two prompts have lov’s, i have to select values .These have the format like “5/4/09 HH:MM AM”.
These two values are appearing on the report by using variable userresonse.
When i am getting the values in report it has the format like “5/4/09 HH:MM AM” .
In my report i want to make this as ‘5/4/09’,means i have to remove the time stamp at report level and lov’s.
when we enter the date in view mode it takes timestamp…when we convert enter date using todate() and format it using formatdate(), there will be issuw when user enter the date in format… MM/dd/yyyy.
solution is as below:
=If(IsError(FormatDate(ToDate(UserResponse ([Query 1] ; "Enter Effective Date of the Report"); MM/dd/yyyy h:mm:ss a");"MM/dd/yyyy"));FormatDate(ToDate(UserResponse ([Query 1 ] ; "Enter Effective Date of the Report");"MM/dd/yyyy");"MM/dd/yyyy");FormatDate(ToDate(UserResponse ([Query 1 ] ; "Enter Effective Date of the Report");"MM/dd/yyyy h:mm:ss a");"MM/dd/yyyy"))
it handles both date format...