home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 June
/
PCWorld_2000-06_cd.bin
/
Software
/
Komercni
/
Cigler
/
Dashbo
/
SETUP
/
_SETUP.1
/
datetime.js
< prev
next >
Wrap
Text File
|
1999-12-17
|
1KB
|
46 lines
' ***************************************************************************
' Design plochy, datum, cas
' ***************************************************************************
Function DateToStr(value)
dim output
output = " "
'output = " " & WeekDayName(WeekDay(value, vbUseSystem), true, vbUseSystem) & " "
'if CInt(Day(value)) < 10 then
' output = output & "0"
'end if
output = output & Day(value)
output = output & "."
'if CInt(Month(Value)) < 10 then
' output = output & "0"
'end if
output = output & Month(value)
output = output & "."
'output = output & MonthName(Month(value))
'output = output & " "
output = output & Year(value)
DateToStr = "<B><I>" & CStr(output) & "</I></B>"
end function
Function TimeToStr(value)
dim output
output = ""
'output = output & "[ "
if CInt(Hour(value))<10 then
output = output & "0"
end if
output = output & Hour(value)
output = output & ":"
if CInt(Minute(value))<10 then
output = output & "0"
end if
output = output & Minute(value)
output = output & ":"
if CInt(Second(value)) < 10 then
output = output & "0"
end if
output = output & Second(value)
'output = output & " ] "
TimeToStr = "<B><I>" & CStr(output) & "</I></B>"
end Function