ifthenelsenull
Technical User
I have a parameter displaying yyyymmdd 00:00:00 I need to turn into a string because it can be null and I want to substitute a message for that case. I have not had any luck with cstr, totext, tonum or any of the standard conversions. I think I remember this using left right and mid to swap out the date part but I'm drawing a blank on what to do with the time.
The code isn't working but I think this is part of the way there. Any help you can provide is appreciated.
Code:
Date (cstr (Right ({?@enddate}, 4)),
cstr (Mid ({?@enddate}, 5, 2)),
cstr (Left ({?@enddate}, 2))
)
The code isn't working but I think this is part of the way there. Any help you can provide is appreciated.