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

Reply

Join Date: Oct 2007
Posts: 5
Reputation: lampie is an unknown quantity at this point 
Solved Threads: 1
lampie's Avatar
lampie lampie is offline Offline
Newbie Poster

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

 
0
  #1
Oct 3rd, 2007
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... ^____^
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 181
Reputation: scudzilla is an unknown quantity at this point 
Solved Threads: 3
scudzilla's Avatar
scudzilla scudzilla is offline Offline
Junior Poster

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

 
0
  #2
Oct 3rd, 2007
Do you have to input the date before the app separates them. Or does the app get the date from the computer?
There are 10 types of people: those who understand Binary and those who don't!
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,094
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 127
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

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

 
0
  #3
Oct 3rd, 2007
simply try this
  1. MsgBox Day(Now) & " " & Month(Now) & " " & Year(Now)
Last edited by debasisdas; Oct 3rd, 2007 at 4:30 am.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 5
Reputation: lampie is an unknown quantity at this point 
Solved Threads: 1
lampie's Avatar
lampie lampie is offline Offline
Newbie Poster

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

 
0
  #4
Oct 3rd, 2007
Originally Posted by debasisdas View Post
simply try this
  1. MsgBox Day(Now) & " " & Month(Now) & " " & Year(Now)
i got the input from the computer system..

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

Thanx...
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 7
Reputation: ramlisarip is an unknown quantity at this point 
Solved Threads: 1
ramlisarip ramlisarip is offline Offline
Newbie Poster

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

 
0
  #5
Oct 3rd, 2007
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?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC