Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic
System Date
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
mclueless
New Member
Join Date:
Jan 2008
Posts:
56
#1
System Date
Jan 18 '08, 05:32 AM
Every time my VB program runs, i want it to fetch the date from system and use it in variouos forms. how do i do that?
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#2
Jan 18 '08, 05:46 AM
Simply you can use DATE function.It returns the systemdate.
Comment
Post
Cancel
QVeen72
Recognized Expert
Top Contributor
Join Date:
Oct 2006
Posts:
1445
#3
Jan 18 '08, 05:58 AM
Originally posted by
mclueless
Every time my VB program runs, i want it to fetch the date from system and use it in variouos forms. how do i do that?
Text1.Text = Date
Regards
Veena
Comment
Post
Cancel
VACEPROGRAMER
Banned
New Member
Join Date:
Nov 2007
Posts:
167
#4
Jan 19 '08, 06:33 PM
TextBox1.Text = DateString
TextBox2.Text = TImeString
Vace
Comment
Post
Cancel
Killer42
Recognized Expert
Expert
Join Date:
Oct 2006
Posts:
8429
#5
Jan 21 '08, 07:10 AM
Keep in mind that the specific syntax, and system variable name, may vary depending on what version of VB you're using. For instance, in VB6 I would normally use
Now
to return the current system date/time.
Comment
Post
Cancel
VACEPROGRAMER
Banned
New Member
Join Date:
Nov 2007
Posts:
167
#6
Jan 24 '08, 05:58 PM
Visual Basic 2003 and Visual Basic 2005
Vace
Comment
Post
Cancel
mclueless
New Member
Join Date:
Jan 2008
Posts:
56
#7
Jan 25 '08, 06:47 AM
But NOW gives the date in form of mm/dd/yy. what if i want it as dd/mm/yy???
Comment
Post
Cancel
QVeen72
Recognized Expert
Top Contributor
Join Date:
Oct 2006
Posts:
1445
#8
Jan 25 '08, 06:54 AM
Hi,
Text1.Text = Format(Now, "dd/mm/yyyy")
Regards
Veena
Comment
Post
Cancel
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#9
Jan 25 '08, 06:56 AM
Originally posted by
mclueless
But NOW gives the date in form of mm/dd/yy. what if i want it as dd/mm/yy???
try to sue this
Format(Date, "dd-mm-yy")
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment