Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
currenttime = ConvWMIDateTime(objOS.LocalDateTime, "ISO8601")
Wscript.Echo "The time is " & currenttime
Function ConvWMIDateTime(sDMTFformat, iNamedFormat)
Dim sYear, sMonth, sDay, sHour, sMinutes, sSeconds
sYear = mid(sDMTFformat, 1, 4)
sMonth = mid(sDMTFformat, 5, 2)
sDay = mid(sDMTFformat, 7, 2)
sHour = mid(sDMTFformat, 9, 2)
sMinutes = mid(sDMTFformat, 11, 2)
sSeconds = mid(sDMTFformat, 13, 2)
ConvWMIDateTime = sYear & "-" & sMonth & "-" & sDay & " " _
& sHour & ":" & sMinutes
If IsNumeric(iNamedFormat) Then
If iNamedFormat >= 0 And iNamedFormat <= 4 Then
' FormatDateTime will set date format to specified format
ConvWMIDateTime = FormatDateTime(ConvWMIDateTime, iNamedFormat)
End If
End If
End Function
response.write year(date)&Month(date)&Day(date)&hour(time)&Minute(time)