change write limit and like limit type to datetime