fixing selecting of date formatter in view