Replacing text with nothing

45 views
Skip to first unread message

Chris Tracey

unread,
May 27, 2017, 6:54:10 PM5/27/17
to mementodatabase
Hello

I have a date in the format 27 May 2017. I want to create a string which removes the spaces i.e 27May2017.

To do this I have set up a calculation field (called datenospace) with the following formula

replace(formatdate(#{datevar}),' ','')

where datevar is the input date variable.

When I do this I get a message in the datenospace variable which says:

"One string argument and two character arguments are required"

Now the formula works if I'm trying to replace the space with another character rather than a null. For example if I put an asterix in between the final two single quotes then it works fine.Therefore I'm guessing my problem is the two single quotes at the end of the formula, but I can't work out the correct way of doing what I need to do.

Grateful for you help as always.

Thanks

Chris
Reply all
Reply to author
Forward
0 new messages