Easy Time and Date

Use this board to post your code snippets - tips and tricks
5 posts Page 1 of 1
Contributors
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Easy Time and Date
zachman61
i know some people say you need timers for dates but i figured out you dont its easy for date add
1 label and under form_load add
Code: Select all
label1.text = datestring
yes this works without a timer
for time of day add
Code: Select all
 label2.text = timeofDay
know many people know the timeofday i just wanted to add it
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
NoWayIn
VIP - Donator
VIP - Donator
Posts: 444
Joined: Sat Nov 21, 2009 11:16 pm

Re: Easy Time and Date
NoWayIn
For the time it would get stuck on whatever the label turns into, that's why you need a timer.

You would Load your form and let's say the time is 1:45:15
It would stay like that
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Easy Time and Date
zachman61
on my form i had it refresh somehow i forgot how though and i lost the project :(
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Re: Easy Time and Date
Lewis
You proberly were using a timer..
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Easy Time and Date
zachman61
i might have been i dont know lol
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
5 posts Page 1 of 1
Return to “Quick Snips”