从now中取得date值

如何从now中取得date值呢

用datevalue()函数即可

比如now="1985-5-5 14:25:25"

取得date

date=datevalue(now)

那么date的值为1985-5-5