removing space formating and removing change for setting min and max form date instead of moment