|
|
|
[vb.net] สอบถาม ตัวแปร date บวกกับ ตัวเลข integer ได้ไหมครับ |
|
|
|
|
|
|
|
Code (VB.NET)
Dim cnt As Integer = Me.txtNum.Text
MessageBox.Show(DateAdd(DateInterval.Day, cnt, Me.sDate.Value))
ลองดูครับ
|
|
|
|
|
Date :
2012-02-28 14:10:26 |
By :
Thep |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (VB.NET)
Me.lblText1.Text = DateAdd(DateInterval.Day, 1, Date.Now)
Me.lblText2.Text = DateAdd(DateInterval.Month, 1, Date.Now)
Me.lblText3.Text = DateAdd(DateInterval.Year, 1, Date.Now)
Me.lblText4.Text = DateAdd(DateInterval.Hour, 1, Date.Now)
Me.lblText5.Text = DateAdd(DateInterval.Second, 1, Date.Now)
Me.lblText6.Text = DateAdd(DateInterval.Minute, 1, strDate)
DateInterval
DateInterval.Day
DateInterval.DayOfYear
DateInterval.Hour
DateInterval.Minute
DateInterval.Month
DateInterval.Quarter
DateInterval.Second
DateInterval.Weekday
DateInterval.WeekOfYear
DateInterval.Year
|
|
|
|
|
Date :
2012-02-29 17:39:48 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|