Advertisement
jargon

basTimestamp.bas

Feb 23rd, 2013
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Attribute VB_Name = "basTimestamp"
  2. Public Function DateStamp() As String
  3.     Dim Tmp As String
  4.     Tmp = Date$
  5.     DateStamp = Mid(Tmp, 7, 4) & Mid(Tmp, 1, 2) & Mid(Tmp, 4, 2)
  6. End Function
  7. Public Function TimeStamp() As String
  8.     Dim Tmp As String
  9.     Tmp = Time$
  10.     TimeStamp = Mid(Tmp, 1, 2) & Mid(Tmp, 4, 2) & Mid(Tmp, 7, 2)
  11. End Function
  12. Public Function Stamp() As String
  13.     Stamp = DateStamp() & TimeStamp()
  14. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement