想做一个vb小程序,输出当前的日期和时间

来源:百度知道 编辑:UC知道 时间:2024/06/19 17:02:14
Private Sub Command1_Click()
Text1.Text = "今天是:" & Format(Date, "dddddd")
End Sub

Private Sub Command2_Click()
text2.Text = "北京时间:" & fromat(Time, "ttttt")
End Sub
但是日期的输出格式不对?今天是2008? 5? 14? ???

谁会VB 大作业啊 随便什么系统都行`
和实验报告 我有格式
要求`
请帮帮我
邮箱wy_6776998@126.com
QQ286883417 `` 谢谢``

取当前日期函数:date$
取当前时间函数:time$
取当前星期函数:weekdayname(weekday(date$)))
不知道有没有你有用的。

Private Sub Command1_Click()

Text1.Text = "今天是:" & Format(Date, "dddddd")

End Sub


Private Sub Command2_Click()

Text2.Text = "北京时间:" & Format(Time, "ttttt")

End Sub