0
我不敢相信這應該是多麼簡單,但它只是對我而言不起作用。我有一個數據表。我有一個該數據表的其中一列的計算字段。在數據表的計算字段中獲取日期值
<xp:text escape="true" id="computedField1">
<xp:this.value><![CDATA[#{javascript:var doc:NotesDocument = database.getDocumentByUNID(rowData);return doc.getItemValueDateTimeArray("FormCreated")[0];}]]></xp:this.value>
<xp:this.converter><xp:convertDateTime type="both" dateStyle="short"timeStyle="short"></xp:convertDateTime></xp:this.converter>
</xp:text>
這不會顯示日期字段的值。如果我在前面加上doc.getItemValueDateTimeArray(「FormCreated」)[0]爲「0」 +使其
"" + doc.getItemValueDateTimeArray("FormCreated")[0]
然後,日期顯示,但不是在格式我已選定的字段。我猜測「」+正在將日期轉換爲字符串。如何以我想要的格式顯示此日期/時間?