943,534 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 472
  • VB.NET RSS
Feb 3rd, 2009
0

Related To Date

Expand Post »
Hi Friends
Accualy I Have a string(date) like 3/02/09
But I Want The Out Put
a=3
b=02
c=09
How Can I Do This Plz Help Me
Similar Threads
Reputation Points: 10
Solved Threads: 2
Light Poster
manoj_582033 is offline Offline
39 posts
since Nov 2008
Feb 3rd, 2009
0

Re: Related To Date

Have you ever checked the Date options?

date.Day, date.Month, date.Year etc etc etc
Reputation Points: 33
Solved Threads: 10
Junior Poster in Training
4advanced is offline Offline
67 posts
since Nov 2008
Feb 4th, 2009
0

Re: Related To Date

vb Syntax (Toggle Plain Text)
  1. dim mydate as string
  2. dim a, b, c
  3. mydate = "3/02/09"
  4. dim myParts as string() = mydate.split("/")
  5. a = myParts(0)
  6. b = myParts(1)
  7. c = myParts(2)
Last edited by Comatose; Feb 4th, 2009 at 7:00 am.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: query about date
Next Thread in VB.NET Forum Timeline: Add Dynmaic Data in DataGrid





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC