954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to separate the date into day, month, and year??

Hello! I have problem here...

I want to separate 12-07-1007 into 3 parts, which are day(12), month(7), and year(1007).

I have made a function to do this separation and it works well.
But i wonder if there is exist a function in VB to do the separation?

Thank U... ^____^

lampie
Newbie Poster
5 posts since Oct 2007
Reputation Points: 10
Solved Threads: 1
 

Do you have to input the date before the app separates them. Or does the app get the date from the computer?

scudzilla
Posting Whiz in Training
277 posts since Mar 2007
Reputation Points: 27
Solved Threads: 17
 

simply try this

MsgBox Day(Now) & " " & Month(Now) & " " & Year(Now)
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

simply try this

MsgBox Day(Now) & " " & Month(Now) & " " & Year(Now)

i got the input from the computer system..

wow... it's works! So simple... ^__________^

Thanx...

lampie
Newbie Poster
5 posts since Oct 2007
Reputation Points: 10
Solved Threads: 1
 

i'm using visual basic 2005 express edition. i tried
MsgBox Day(Now) & " " & Month(Now) & " " & Year(Now)MsgBox Day(Now) & " " & Month(Now) & " " & Year(Now)
but an error occur say day cant be use as an expresion.why is that so?

ramlisarip
Newbie Poster
7 posts since Oct 2007
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You