cancel
Showing results for 
Search instead for 
Did you mean: 

Formula for dates

Former Member
0 Kudos

Hi

I have a report with a prompt where the user select a date. I want to display the prompt answer on the report however the answer includes the time. I am trying to apply the following formula to only display the dates

="Leaves from " + FormatDate(ToDate(UserResponse("Leaves from date:");"dd/MM/yyyy");"dd/MM/yyyy)

It says it is correct when validating it, however at the time of display it the report shows #ERROR.

Any ideas?

Thanks

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

former_member211423
Active Participant
0 Kudos

Hi Teresa,

Use Following:

="Leaves From " + FormatDate(ToDate(UserResponse("Leaves from date:");"");"dd/MM/yy")

Hope it helps!!

Regards

Sheetal Sharma

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sheetal

Thanks so much for your answer, it worked . I thought that in the ToDate() function you had to put the date format, that is what the help says. Is this an exception?

Thanks

Teresa