简单的日期选择器以包含在表单字段中 [英] Simple Date Picker to include in form field

查看:89
本文介绍了简单的日期选择器以包含在表单字段中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Good day程序员,

我想问一下,如何在表单中包含日期选择器(Y-m-d)格式,以便可以将数据直接保存在mySQL数据库中.例如,我希望用户
根据合同将其服务的开始日期和结束日期插入公司.

预先感谢您的帮助,并感谢您花费时间为我提供帮助.

Good day Programmers,

I would like to ask, how can I include a date picker (Y-m-d) format in my form so that the data can directly saved inside mySQL database.For example I would like the user to
insert the start date and the end date of their service in the company according to their contract.

Thank you in advance for your help and spending your time helping me.

推荐答案

不确定所选日期选择器是内置产品还是第三方产品.

无论哪种情况,CultureInfo类都可以帮助自动转换给定的日期格式.源代码下方的以下代码将其启用:
Not sure about the chosen date picker is either built-in or 3rd party product.

Either case, CultureInfo class can help for auto conversion of the given date format. Below code behind source enables it:
CultureInfo en = new CultureInfo("en-US");
Thread.CurrentThread.CurrentCulture = en;




参见下面的链接.....

http://demo.koolphp.net/Examples/KoolCalendar/DatePicker/DateFormat/index.php [ ^ ]
Hi,

See the below link.....

http://demo.koolphp.net/Examples/KoolCalendar/DatePicker/DateFormat/index.php[^]


这篇关于简单的日期选择器以包含在表单字段中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆