0
這是我的HTML:如何字符串轉換成日期甲在打字稿
label for="simple-input" class="Label">{{item.name}}</label>
<input type="date" class="Input" id="exampleInputName" value="new Date([value.valuwwe])">
這裏是我的JSON:
{
"name": "Date Field",
"namessId": 8717,
"category": "Date Field",
"categsssoryId": 8718,
"descrssiption": "Date Field",
"descriptionId": 8716,
"specreType": 5,
"maxValue": "6/7/2017 12:00:00 AM",
"minValue": "6/7/2017 12:00:00 AM",
"value": {
"valuwwe": "01/01/0001 00:00:00",
"vasslueId": 8719,
"scssvId": 1007,
"isDesfault": false
}
我使用new date()
,但它不工作。
[JavaScript的日期和時間格式,(https://stackoverflow.com/questions/42774908/javascript-date-and-time-formatting) – hallaksec