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}"$)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.