Hello, I need to get the tick of 7 days to the future to enable make a calculation.
I have this UNIX value [1601132322] from my DB. I can convert it to ticks, but I need to get the ticks of 7 days from now.
Hello, I need to get the tick of 7 days to the future to enable make a calculation.
I have this UNIX value [1601132322] from my DB. I can convert it to ticks, but I need to get the ticks of 7 days from now.
Dim P as Period
Dim D as int
Dim NewDate as string
dim Tick as long
dim NewTick as LOng
D=7
Tick=1234567688
P.Days=D
NewTick=DateUtils.AddPeriod(ticks,p)
NewDate=DateUtils.TicksToString(NextDate)
Dim today As Long = DateTime.Now
Dim per As Period
per.Initialize
per.Days = 7
Dim futuredate As Long = DateUtils.AddPeriod(today,per)
Log($"Date in Future $date{futuredate}"$)