home *** CD-ROM | disk | FTP | other *** search
- ' ***************************************************************************
- ' 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
-
-