最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - cforms js datepicker inserts year twice - Stack Overflow

programmeradmin0浏览0评论

Please test the date fields here: /

You will notice the value entered once a date is chosen is not mm/dd/yyyy as it should, but rather mm/dd/yyyyyyyy.

Any ideas?

Not to mention the css is all bonkers on the datepicker as well..

Resolved! Under the Global settings of the cforms plugin, the 'Date Format' field was set to 'mm/dd/yyyy'. I changed it to 'mm/dd/yy' and it now displays the date in the correct format, 'mm/dd'yyyy'

Please test the date fields here: http://sheberesort..s122140.gridserver./contact/

You will notice the value entered once a date is chosen is not mm/dd/yyyy as it should, but rather mm/dd/yyyyyyyy.

Any ideas?

Not to mention the css is all bonkers on the datepicker as well..

Resolved! Under the Global settings of the cforms plugin, the 'Date Format' field was set to 'mm/dd/yyyy'. I changed it to 'mm/dd/yy' and it now displays the date in the correct format, 'mm/dd'yyyy'

Share Improve this question edited Apr 12, 2011 at 11:06 vulgarbulgar asked Apr 12, 2011 at 10:07 vulgarbulgarvulgarbulgar 8441 gold badge13 silver badges28 bronze badges 4
  • can you provide the code that you are using for adding the values in Date fields. – Sai Kalyan Kumar Akshinthala Commented Apr 12, 2011 at 10:12
  • @kalyan it is via this plugin for wordpress- deliciousdays./cforms-plugin – vulgarbulgar Commented Apr 12, 2011 at 10:26
  • @kalyan here is a working example - barcelonasummercamp./enroll – vulgarbulgar Commented Apr 12, 2011 at 10:27
  • Resolved! Under the Global settings of the cforms plugin, the 'Date Format' field was set to 'mm/dd/yyyy'. I changed it to 'mm/dd/yy' and it now displays the date in the correct format, 'mm/dd'yyyy' – vulgarbulgar Commented Apr 12, 2011 at 11:06
Add a ment  | 

1 Answer 1

Reset to default 11

Resolved! Under the Global settings of the cforms plugin, the 'Date Format' field was set to 'mm/dd/yyyy'. I changed it to 'mm/dd/yy' and it now displays the date in the correct format, 'mm/dd'yyyy'

发布评论

评论列表(0)

  1. 暂无评论