VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



DATE/TIME COMMANDS

by Sum1Else (6 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

TIME/DATE Commands

Rate DATE/TIME COMMANDS

Believe it or not, some people don't know about these simple codes. Well, here they are. Also, they are all documented in the VB help file
if returning the time constantly it is wise to use a timer to do it so you always have the current time or date
date commands: 
(date)'returns the current date
day(date) ' gets the current day
month(date) ' gets the current month
year(date) ' gets the current year
datediff 'gets the distance between two dates
time commands:
second(time) 'returns the current second
minute(time) 'returns the current minute
hour(time) 'returns the current hour
(time) ' returns the current time

Download this snippet    Add to My Saved Code

DATE/TIME COMMANDS Comments

No comments have been posted about DATE/TIME COMMANDS. Why not be the first to post a comment about DATE/TIME COMMANDS.

Post your comment

Subject:
Message:
0/1000 characters