开发者

which type i need for this input "06/09/2011 05:25" ? on the model ? (column type)

开发者 https://www.devze.com 2023-03-14 00:45 出处:网络
i\'m using this datetimepicker, http://trentrichardson.com/examples/timepicker/ and i get this datetime input: 06/09/2011 05:25, now i want to save the input in the database so i can use it later, whi

i'm using this datetimepicker, http://trentrichardson.com/examples/timepicker/ and i get this datetime input: 06/09/2011 05:25, now i want to save the input in the database so i can use it later, which column type i need to setup on the datebase? i'm using this code for getting the input from users.

f.text_field :status_date

i tried the types date and datetime but both of them did not work (the column was nil when submiting)

开发者_StackOverflow社区

thanks, Gal

0

精彩评论

暂无评论...
验证码 换一张
取 消