Hi,
I'm trying to use some date/time capabilities of npUtil but I'm not getting good results and I just tested this:
And its giving me:
I think this is not the correct behavior, Am I right?
Regards.
Hi,
I'm trying to use some date/time capabilities of npUtil but I'm not getting good results and I just tested this:
And its giving me:
I think this is not the correct behavior, Am I right?
Regards.
Hello Nelson,
What's wrong to you?
I thought the process to ENCODE a date would turn something like: 1987-03-29 into 2265123, you know like DateToNum sort of thing...
Maybe I'm wrong If that's the way its supposed to work that I just apologize... =)
Hello Nelson,
Don't worry. In fact we can use the npEncodeDateTime action to prepare certain value (a "Delphi" datetime string, stored in the result variable) in order to do later two possible things: just use the value like you do above, for example, to show the datetime in an alertbox, or, more commonly, to be use it with other plugin related actions, in order to compare dates, increment days, get number of between days, etc.
The npWeeksBetween action, for example, offer us a sample of the npEncodeDateTime use.
Hello Nelson,Don't worry. In fact we can use the npEncodeDateTime action to prepare certain value (a "Delphi" datetime string, stored in the result variable) in order to do later two possible things: just use the value like you do above, for example, to show the datetime in an alertbox, or, more commonly, to be use it with other plugin related actions, in order to compare dates, increment days, get number of between days, etc.
The npWeeksBetween action, for example, offer us a sample of the npEncodeDateTime use.
Yeah, I corrected my code and its working fine... I haven't use this function in a while but I think I remember it used to retrieve an integer... so I got confused but yeah, its working nicely as usual =)
Regards.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.