one param to_date function should be STABLE only now

by Fujii Masao