Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have date 15/1/2015 and i want to concat time which is in string format but time is"00:00:00" please help me.?
Posted
Comments
Sergey Alexandrovich Kryukov 13-Jan-15 0:34am    
Don't "concat". Instead, explain what do you want to achieve, why, how, what did you want to achieve, what did you get, and so on.
—SA

1 solution

Dim dt As String = "15/1/2015"
Dim tm as String = "00:00:00"
Dim dtstring As String = dt + " " + tm
Dim value As DateTime = New DateTime(dtstring)


http://www.dotnetperls.com/datetime-vbnet[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900