2014-09-04 76 views

回答

0

要麼在fill_1的onBlur或Format事件(如果可用於自定義格式)或在fill_17的Calculate事件中讀出fill_1中的日期,請使用util.scand( ),並使用util.printd()使用該日期對象和格式設置fill_17的值。

對於第一種情況,這應該是這樣的:

var theDate = util.scand("dd/mm/yyyy", event.value) ; 
this.getField("fill_17").value = util.printd("mmmm dd, yyyy", theDate) ; 

對於第二種情況,就應該是這樣的:

var theDate = util.scand("dd/mm/yyyy", this.getField("fill_1").valueAsString) ; 
event.value = util.printd("mmmm dd, yyyy", theDate) ; 

而且應該這樣做。

相關問題