Calculate Date - Forum

Forum Navigation
You need to log in to create posts and topics.

Calculate Date

Help, I need to calculate how many days have passed compared to an initial date.

Thank

@sinesi-giuseppe

VisualNEO Web - neoDate Plugin Tutorial

There is a copy of this Tutorial in your VisualNEOWeb Sample Apps/Tutorials folder, where you can examine the commands associated with the Buttons.

@sinesi-giuseppe

for VisualNeo WIN you can use David Esperalta

npUtil plugin, Action npDaysBetween

CN_Iceman has reacted to this post.
CN_Iceman

@sinesi-giuseppe

asDateTime (Andrei Solodyankin) = asDTDaysBetween = Get the number of full days between dates.

tmDates 1.01 (Alberto Meyer) = tmDTDaysApart = Get the number of full days between dates.

CN_Iceman has reacted to this post.
CN_Iceman

@sinesi-giuseppe

You can use a special program to search for plugin commands
https://visualneo.com/forum/topic/plugininfo

Thank you, all'i'm using thasDateTime (Andrei Solodyankin) = asDTDaysBetweene Asdate,

but when I compare between today's date and a next day it doesn't show me the negative date. How can I solve.

@sinesi-giuseppe

You can first check the dates with the command asDTCompareDate

@sinesi-giuseppe

My apologies for the first post, I was thinking of VisualNEOWeb.

If you need this in VisualNEOWin, there are native commands for it ...

https://winhelp.visualneo.com/Control.html#DATETONUM

... the trick is to convert both dates to a number (which is the number of days since December 30, 1899) ... then subtract the two numbers ... there is even an example solution for what you are looking for.

Vadim and CN_Iceman have reacted to this post.
VadimCN_Iceman