2014-09-04 77 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) ; 

而且应该这样做。

相关问题