自由格式的日期选择器 - 像RTM [英] Free-Form Date Picker - like RTM
问题描述
我在找一个办法有一个文本框,允许用户在日期任意格式输入,转过身来,并在该日期在MM / DD / YYYY格式格式。因此,用户可以键入今天,它会打开日期2009年2月24日或者也可以输入周三02月24日和格式会自动拾取。记住牛奶做到这一点(但我相信服务器端)。这是asp.net,所以我可以做的是通过AJAX Web服务调用,但我会preFER通过JavaScript来做到这一点。我在寻找一个通用的技术或者现有的库来帮助这一点。
I'm looking for a way to have a textbox that allows users to type in a date in any format and turns around and formats that date in a 'mm/dd/yyyy' format. So the user could type in "Today" and it would turn the date as 02/24/2009 or they could type in Wednesday Feb 24 and formatting would automatically pick up. Remember the Milk does this (but I believe server side). This is asp.net so I could do via ajax web service call but I would prefer to do this via Javascript. I'm looking for a general technique or existing library to help with this.
推荐答案
这篇关于自由格式的日期选择器 - 像RTM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!