如何自己获取本地计算机的时间

阅读次数 85

获取本地时间并写入A1中

1 Answers

可以使用Date对象获取当前时间

Application.Range("A1").Value = new Date().toString()