fixed date saving issue to rails...need to format yyyy/mm/dd