在日期字段中返回今天的日期 [英] Return Todays date in Date Field
本文介绍了在日期字段中返回今天的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在Business Catalyst中工作,试图获取日期字段以返回当前日期.
这是我拥有的脚本:
I am working in Business Catalyst and trying to get a date field to return the current date.
Here is the script I have:
<tr>
<td><label for="CAT_Custom_362382_326">Join Date</label><br />
<input type="text" name="CAT_Custom_362382_326" id="CAT_Custom_362382_326" class="cat_textbox" readonly="readonly" style="background-color: #f0f0f0;" önfocus="displayDatePicker('CAT_Custom_362382_326');return false;" />
</td>
</tr>
<script type="text/javascript" src="/CatalystScripts/Java_DatePicker.js"></script>
why += checkDate(theForm.CAT_Custom_362382_326.value,"Join Date");
推荐答案
当前日期仅为:
The current date is just:
date = new Date();
您可以使用此日期初始化DatePicker
.
You can initialize the DatePicker
with this date.
这篇关于在日期字段中返回今天的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文