Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ノックアウトjsとホットタオルスパテンプレートを統合して、アプリケーションにwijmoコントロールを使用しようとしています。それは正常に動作します。しかし、「2013-42-18 11:42 PM」のように、発生してはならない間違った日付が表示されます。「dataType: 'datetime', dataFormatString: 'yyyy-mm-dd hh:mm tt'」のようなデータ型を提供しています。
ありがとう
チョプラ王子
dataFormatString を「yyyy-MM-dd hh:mm tt」に変更してください。「mm」は分を表すのに使用され、「MM」は月を表すのに使用されます。