Vbscript mesage box with time…


In this video i show you how to make two scripts:

The first one will display a message box with updated date and/or time:

msgbox (“The time is ” & cdate(time))
msgbox (“The date is ” & cdate(date))
msgbox (“The date and time is ” & cdate(date) & & ” ” cdate(time))

The second script will display a message box that display how much months, days , hours, minutes and seconds are left until a certain date.

millenium=cdate(“01/10/3000 00:00:00”)
msgbox(“It is ” & DateDiff(“m”, Now(), millenium) & ” months to your date”)
msgbox(“It is ” & DateDiff(“d”, Now(), millenium) & ” days to your date”)
msgbox(“It is ” & DateDiff(“h”, Now(), millenium) & ” hours to your date”)
msgbox(“It is ” & DateDiff(“n”, Now(), millenium) & ” minutes to your date”)
msgbox(“It is ” & DateDiff(“s”, Now(), millenium) & ” seconds to your date”)

Please rate, comment and subscribe.


Leave a Comment