Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
VB checking whether a date is between 2 dates
'Rextester.Program.Main is the entry point for your code. Don't change it. 'Compiler version 11.0.50709.17929 for Microsoft (R) .NET Framework 4.5 Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Text.RegularExpressions Namespace Rextester Public Module Program Public Sub Main(args() As string) Dim str As String = "srt_inlbp_20130517" Dim dTableDate As Date = Convert.ToDateTime("2018/02/14") 'DateTime.Now.ToString("yyyy/MM/dd") Dim dFromDate As DateTime = Convert.ToDateTime("2018/02/14") Dim dToDate As DateTime = Convert.ToDateTime("2018/02/20") If ((dTableDate >= dFromDate) And (dTableDate <= dToDate)) Then Console.WriteLine("between") Else Console.WriteLine("not between") End If End Sub End Module End Namespace
run
|
edit
|
history
|
help
0
rotina de professores (select case)
CALCULADORA
Exercício de variáveis 1
Amma
Denary numbers to binary for numbers below 255
select case
Example day of year ~ use of mod to obtain remainder
CAI Visual Basic - Ej Citas
Black Jack
Math.Abs