如何更改完整日历的格式

时间:2014-07-25 11:51:40

标签: php fullcalendar

我想更改选择日期后在文本框中显示的日期格式。我尝试过在谷歌中找到的格式表和其他编码,但它没有用。

<form action="report_emp.php" method="post">
    <input name="id" type="hidden" value="<?php echo $_GET['id'];?>">
    <table class="table table-striped table-bordered bootstrap-datatable datatable">
        <tbody>
            <tr>
                <td>From</td>
                <td>
                    <div class="control-group">
                        <label class="control-label" for="date01">Date</label>
                        <div class="controls">
                            <input type="text" class="input-xlarge datepicker" id="date01" name="datefrom" value="mm/dd/yy">
                        </div>
                    </div>
                </td>
                <td>To</td>
                <td>
                    <div class="control-group">
                        <label class="control-label" for="date02">Date</label>
                        <div class="controls">
                            <input type="text" class="input-xlarge datepicker" id="date02" name="dateto" value="mm/dd/yy">
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary">Find Client Details</button>
        <button class="btn">Cancel</button>
    </div>
</form>

1 个答案:

答案 0 :(得分:0)

如果您正在谈论jquery datepicker,那么您可以使用:

$( "#datepicker" ).datepicker( "option", "dateFormat", "mm/dd/yy" );

Check here.