dim d as date = # 03/12/2012 #
dim d1 as date = # 04/12/2012 #
dim n as integer = datediff("d",d1,d)
output.show("相差" & n & "天")