Advertisement

09.17.2007 at 11:45AM PDT, ID: 22834034
[x]
Attachment Details

Date Time VB.Net

Asked by AWestEng in .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005

Tags: date, time

Hi

I have 3 integer that represents the year, month days

        Dim intYear As Integer = CInt(strYear)
        Dim intMonth As Integer = iMonth
        Dim intEndDay As Integer = CInt(Date.DaysInMonth(intYear, intMonth))

Now I want to create two strings with dates, for a SQL Query
I need  "Start date" that is:  intYear,  intMonth  and 01 (day) and time 00:00:00
And "End date":  intYear,  intMonth  and intEndDay  and 23:59:59

How do create these two strings in a easy way,   :)Start Free Trial
[+][-]09.17.2007 at 11:58AM PDT, ID: 19907321

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Visual Basic.Net, Visual Studio .NET 2005
Tags: date, time
Sign Up Now!
Solution Provided By: FernandoSoto
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.17.2007 at 12:11PM PDT, ID: 19907442

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628