Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Different Format In Db And In Html Input Field

$
0
0
I have a MySQL database with date field in format like "2013-04-05".

I also have CActiveForm with datapicker which accepts values like "05/10/2013".

What is the proper way to convert between these formats when loading and when submitting the form?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>