Quote from Chillcoder on September 27, 2021, 8:32 pmHi Version of Neo Web 21.7.9
Neodate 2.5
Then installed the plugin from top of post. No version number on that one when installed.
Run tested and got the same error. Sorry.
Hi Version of Neo Web 21.7.9
Neodate 2.5
Then installed the plugin from top of post. No version number on that one when installed.
Run tested and got the same error. Sorry.
Quote from Gaev on September 28, 2021, 12:55 am@jason-roberts
Version of Neo Web 21.7.9
Neodate 2.5These are the same as mine.
As requested before, please provide the name of the page (also in the Header at run time) and the label of the Button that is displaying the error ... so I can see if I can replicate the error.Sorry, I got confused about two different issues reported.
Version of Neo Web 21.7.9
Neodate 2.5
These are the same as mine.
As requested before, please provide the name of the page (also in the Header at run time) and the label of the Button that is displaying the error ... so I can see if I can replicate the error.
Sorry, I got confused about two different issues reported.
Quote from Gaev on September 28, 2021, 1:23 am@jason-roberts
The posted code works on my machine ... time for more investigations ...
1) Please advise if you can run the Tutorial ... specifically, the neoDateDifference page.
2) If you can, then please ...
a) copy the exact code of yours that produces the error, and paste it on this forum.
b) add an AlertBox command just before the neoDateDifference command to show values for [expiryDateString] and [nowTimeString] ... to verify that both date objects contain the entered values.
The posted code works on my machine ... time for more investigations ...
1) Please advise if you can run the Tutorial ... specifically, the neoDateDifference page.
2) If you can, then please ...
a) copy the exact code of yours that produces the error, and paste it on this forum.
b) add an AlertBox command just before the neoDateDifference command to show values for [expiryDateString] and [nowTimeString] ... to verify that both date objects contain the entered values.
Quote from Chillcoder on September 28, 2021, 6:15 amHere is the code:
..SetVar "[expiryDateFromDB]" "2021-09-19"
SetVar "[expiryDateFromDB]" "2021-09-27"neoDateCreate [expiryDateObject] "[expiryDateFromDB]" "YYYY-MM-DD"
.. for verification purposes only
neoDateAsString "[expiryDateObject]" "YYYY-MM-DDTHH:mm:ss" [expiryDateString]neoDateCreate "[nowTimeObject]" "" ""
.. for verification purposes only
neoDateAsString [abcd] "YYYY-MM-DDTHH:mm:ss" [nowTimeString]
AlertBox "Variables Set" "NowTimeString = [nowTimeString] NowTimeObject = [nowTimeObject] ExpiryDateString = [expiryDateString]" ""
neoDateDifference [nowTimeObject] [expiryDateObject] "seconds" 0 [secondsDifference]If [secondsDifference] < 0
.. expired
AlertBox "Expired" "ExpiryDate=[expirydateString]<br/>Now=[nowTimeString]<br/>SecondsDifference=[secondsDifference]" ""
Else
Math "[secondsDifference]/(24*60*60)" 2 [daysDifference]
AlertBox "Not Expired" "Expirydate=[expirydateString]<br/>Now=[nowTimeString]<br/>SecondsDifference=[secondsDifference]<br/>DaysDifferece[daysDifference]" ""
EndIf
The AlertBox Shows:
Variables Set
NowTimeString = 2021-09-28T17:07:10 NowTimeObject = 1632802030662 ExpiryDateString = 2021-09-27T00:00:00
Finally
1) Please advise if you can run the Tutorial ... specifically, the neoDateDifference page.
I am looking at the NeoDate Tutorial and I cannot see a reference to the neoDateDifference page at all. Not mentioned in any of the text. Sorry Gaev.
Here is the code:
..SetVar "[expiryDateFromDB]" "2021-09-19"
SetVar "[expiryDateFromDB]" "2021-09-27"neoDateCreate [expiryDateObject] "[expiryDateFromDB]" "YYYY-MM-DD"
.. for verification purposes only
neoDateAsString "[expiryDateObject]" "YYYY-MM-DDTHH:mm:ss" [expiryDateString]neoDateCreate "[nowTimeObject]" "" ""
.. for verification purposes only
neoDateAsString [abcd] "YYYY-MM-DDTHH:mm:ss" [nowTimeString]
AlertBox "Variables Set" "NowTimeString = [nowTimeString] NowTimeObject = [nowTimeObject] ExpiryDateString = [expiryDateString]" ""
neoDateDifference [nowTimeObject] [expiryDateObject] "seconds" 0 [secondsDifference]
If [secondsDifference] < 0
.. expired
AlertBox "Expired" "ExpiryDate=[expirydateString]<br/>Now=[nowTimeString]<br/>SecondsDifference=[secondsDifference]" ""
Else
Math "[secondsDifference]/(24*60*60)" 2 [daysDifference]
AlertBox "Not Expired" "Expirydate=[expirydateString]<br/>Now=[nowTimeString]<br/>SecondsDifference=[secondsDifference]<br/>DaysDifferece[daysDifference]" ""
EndIf
The AlertBox Shows:
NowTimeString = 2021-09-28T17:07:10 NowTimeObject = 1632802030662 ExpiryDateString = 2021-09-27T00:00:00
Finally
1) Please advise if you can run the Tutorial ... specifically, the neoDateDifference page.
I am looking at the NeoDate Tutorial and I cannot see a reference to the neoDateDifference page at all. Not mentioned in any of the text. Sorry Gaev.

Quote from Phil78 on September 28, 2021, 3:09 pm@Gaev Hi Gaev the version number is 2.5.
the error in on the page neoDate-Tutorial_Test/index.html#!/neoDateDifference, header Dates differences, when entering on the page after clicking on the button next page.
I understood about the translation, but I hadn't looked at the code I thought there was a direct function for neodateget like MonthName or DayName which would be interesting.
@Gaev Hi Gaev the version number is 2.5.
the error in on the page neoDate-Tutorial_Test/index.html#!/neoDateDifference, header Dates differences, when entering on the page after clicking on the button next page.
I understood about the translation, but I hadn't looked at the code I thought there was a direct function for neodateget like MonthName or DayName which would be interesting.
Quote from Gaev on September 28, 2021, 4:01 pm@phil78
the error in on the page neoDate-Tutorial_Test/index.html#!/neoDateDifference, header Dates differences, when entering on the page after clicking on the button next page.
By 'the button next page', I am assuming that you were referring to the right pointing arrow ... I do not get any error, it navigates to the 'Thank You' page.
Looks like something in the Tutorial (as opposed to the plugin) ... can you perform these two investigative steps for me ? ...
a) perform a 'date difference calculation' (any value will do) ... then try and navigate to the next page ... see if that works.
b) can you download the Tutorial from the first post in this Topic, and see if it throws up the same error ?
I understood about the translation, but I hadn't looked at the code I thought there was a direct function for neodateget like MonthName or DayName which would be interesting.
I had this on my ToDo list, but time restraints (I was way past the due date I promised @luishp) caused me to drop this functionality.
Note that such functionality would still require the developer to create a comma-separated list of day/month names, in order to accommodate languages and abbreviated names etc.
I will look into creating a plugin command (or a subroutine) that emulates the code I provided.
the error in on the page neoDate-Tutorial_Test/index.html#!/neoDateDifference, header Dates differences, when entering on the page after clicking on the button next page.
By 'the button next page', I am assuming that you were referring to the right pointing arrow ... I do not get any error, it navigates to the 'Thank You' page.
Looks like something in the Tutorial (as opposed to the plugin) ... can you perform these two investigative steps for me ? ...
a) perform a 'date difference calculation' (any value will do) ... then try and navigate to the next page ... see if that works.
b) can you download the Tutorial from the first post in this Topic, and see if it throws up the same error ?
I understood about the translation, but I hadn't looked at the code I thought there was a direct function for neodateget like MonthName or DayName which would be interesting.
I had this on my ToDo list, but time restraints (I was way past the due date I promised @luishp) caused me to drop this functionality.
Note that such functionality would still require the developer to create a comma-separated list of day/month names, in order to accommodate languages and abbreviated names etc.
I will look into creating a plugin command (or a subroutine) that emulates the code I provided.

Quote from Phil78 on September 28, 2021, 5:37 pm@gaev I have tried with both version it throws up the same error. The button is pressed from page before and the error becomes when entering on the page DateDifference. There is no error by leaving this page to the last thank you page.
About the GetDateName day and month, yes we need to have the sentence in the language file.
@gaev I have tried with both version it throws up the same error. The button is pressed from page before and the error becomes when entering on the page DateDifference. There is no error by leaving this page to the last thank you page.
About the GetDateName day and month, yes we need to have the sentence in the language file.
Quote from Gaev on September 28, 2021, 6:23 pm@phil78
The button is pressed from page before and the error becomes when entering on the page DateDifference. There is no error by leaving this page to the last thank you page
My misunderstanding ... there is some page-enter code on the DateDifference page ... but it works fine for me.
I have a doctor's appointment ... when I return, I will do some more investigating.
The button is pressed from page before and the error becomes when entering on the page DateDifference. There is no error by leaving this page to the last thank you page
My misunderstanding ... there is some page-enter code on the DateDifference page ... but it works fine for me.
I have a doctor's appointment ... when I return, I will do some more investigating.
Quote from Gaev on September 28, 2021, 8:26 pm@phil78
I have run the Tutorial from ...
- my private folder
- the folder in my VisualNEOWeb platform
- the link in the beginning of this topic... all run flawlessly.
Can you upload the version on your machine (make sure it is the one where you are getting the error) ... I will download it and run it on my machine.
Can you also advise me the brand (Chrome, Edge etc.) and version of your Browser ?
Are you running on a Windows 10 machine ?
I have run the Tutorial from ...
- my private folder
- the folder in my VisualNEOWeb platform
- the link in the beginning of this topic
... all run flawlessly.
Can you upload the version on your machine (make sure it is the one where you are getting the error) ... I will download it and run it on my machine.
Can you also advise me the brand (Chrome, Edge etc.) and version of your Browser ?
Are you running on a Windows 10 machine ?
Quote from Gaev on September 28, 2021, 9:08 pm@jason-roberts
I was surprised by the result of your AlertBox ...
NowTimeString = 2021-09-28T17:07:10 NowTimeObject = 1632802030662 ExpiryDateString = 2021-09-27T00:00:00
I was getting something like ...
ExpiryDate=2021-09-27T00:00:00
Now=2021-09-28T14:27:21
SecondsDifference=-138441... upon closer examination, I found an error in one of my commands ...
neoDateAsString "[abcd]" "YYYY-MM-DDTHH:mm:ss" [nowTimeString]... should have been ...
neoDateAsString "[nowTimeObject]" "YYYY-MM-DDTHH:mm:ss" [nowTimeString]... but that does not have any effect on your original problem ...
Let me wait for @phil78 to upload his Tutorial, before I ask you to (may be) do the same.
I was surprised by the result of your AlertBox ...
NowTimeString = 2021-09-28T17:07:10 NowTimeObject = 1632802030662 ExpiryDateString = 2021-09-27T00:00:00
I was getting something like ...
ExpiryDate=2021-09-27T00:00:00
Now=2021-09-28T14:27:21
SecondsDifference=-138441
... upon closer examination, I found an error in one of my commands ...
neoDateAsString "[abcd]" "YYYY-MM-DDTHH:mm:ss" [nowTimeString]
... should have been ...
neoDateAsString "[nowTimeObject]" "YYYY-MM-DDTHH:mm:ss" [nowTimeString]
... but that does not have any effect on your original problem ...
Let me wait for @phil78 to upload his Tutorial, before I ask you to (may be) do the same.

Quote from Phil78 on September 29, 2021, 5:20 pm@gaev Hi Gaev I have tested with the version which was on the delivery of 21.7.9, and the version of this topic. I am under windows 10 21H1 and Iuse firefox 92.0.1 as browser, always with the same result.
@gaev Hi Gaev I have tested with the version which was on the delivery of 21.7.9, and the version of this topic. I am under windows 10 21H1 and Iuse firefox 92.0.1 as browser, always with the same result.
Quote from Gaev on September 29, 2021, 6:00 pm@phil78
I use firefox 92.0.1 as browser
I do not have Firefox ... just Chrome and MS Edge (Chrome Edition) ... and I have tested on both.
Do you have access to Chrome or Edge browsers ?
Can you upload the Tutorial from VisualNEOWeb 21.7.9 Samples/Tutorials folder ? ... I will then download and test it on my machine.
If others with Firefox and/or Chrome browsers can run the Tutorial and Plugin delivered with VisualNEOWeb 21.7.9, perhaps they can post their experience.
I use firefox 92.0.1 as browser
I do not have Firefox ... just Chrome and MS Edge (Chrome Edition) ... and I have tested on both.
Do you have access to Chrome or Edge browsers ?
Can you upload the Tutorial from VisualNEOWeb 21.7.9 Samples/Tutorials folder ? ... I will then download and test it on my machine.
If others with Firefox and/or Chrome browsers can run the Tutorial and Plugin delivered with VisualNEOWeb 21.7.9, perhaps they can post their experience.

Quote from Phil78 on September 30, 2021, 11:50 am@Gaev I don't understand anything, I can't launch now the application because of an error on the button73.
neoDateQuery1 [query1DateObject] "[neoDateQueryType]" "[neoDateQueryResult]"
@Gaev I don't understand anything, I can't launch now the application because of an error on the button73.
neoDateQuery1 [query1DateObject] "[neoDateQueryType]" "[neoDateQueryResult]"
Uploaded files:Quote from Gaev on September 30, 2021, 3:53 pm@phil78
About the uploaded Tutorial App file(s) ...
1) I do not understand why you uploaded two files.
2) Both versions work flawlessly ... however, when I run the second one (the one with the hyphen/dash) on Chrome, it thinks the webpage is in French, and translates it into English automatically; on Microsoft Edge (Chrome Edition) it does not think it is in French.
Can you explain why two uploads, and clues as to why Chrome would consider it to be in the French language ?
I can't launch now the application because of an error on the button73.
neoDateQuery1 [query1DateObject] "[neoDateQueryType]" "[neoDateQueryResult]"I don't understand the link between 'not being able to launch' and 'the code in a subsequent page' ... have you used Inspec t to check for any errors being reported ?
I think the root cause is something to do with Firefox or something else unique to your environment (computer).
Unless you can check it out under Chrome/Edge, or others can report their experiences under Firefox, Chrome and Edge, I really can't do anything more.
Perhaps, you can create a new App, with just the one page/button (copy/paste the code) and see if you get errors.
About the uploaded Tutorial App file(s) ...
1) I do not understand why you uploaded two files.
2) Both versions work flawlessly ... however, when I run the second one (the one with the hyphen/dash) on Chrome, it thinks the webpage is in French, and translates it into English automatically; on Microsoft Edge (Chrome Edition) it does not think it is in French.
Can you explain why two uploads, and clues as to why Chrome would consider it to be in the French language ?
I can't launch now the application because of an error on the button73.
neoDateQuery1 [query1DateObject] "[neoDateQueryType]" "[neoDateQueryResult]"
I don't understand the link between 'not being able to launch' and 'the code in a subsequent page' ... have you used Inspec t to check for any errors being reported ?
I think the root cause is something to do with Firefox or something else unique to your environment (computer).
Unless you can check it out under Chrome/Edge, or others can report their experiences under Firefox, Chrome and Edge, I really can't do anything more.
Perhaps, you can create a new App, with just the one page/button (copy/paste the code) and see if you get errors.

Quote from luishp on September 30, 2021, 6:23 pm@gaev @phil78 I can't reproduce any error here using Firefox. What are the exact steps to reproduce it?
I have tested both files uploaded by @phil78Regards.
@gaev @phil78 I can't reproduce any error here using Firefox. What are the exact steps to reproduce it?
I have tested both files uploaded by @phil78
Regards.
Quote from Gaev on October 2, 2021, 9:41 pm@jason-roberts
I have uploaded a .neoapp file with just one button ... it tells you if a date is before or after today.
1) please check if the neoDateDifference command is recognized at design time or not (command should be in blue, and listed under the sub group neoDate)
If it is NOT recognized, you have an older version of the plugin; please remove it and add it from the first post in this tread or from the latest version of VisualNEOWeb.
2) If it is recognized, continue and run it AS IS under Chrome or Microsft Edge (Chrome Edition)
If it does not show the AlertBox, inspect the cause of the failure and report the error encountered.
If your regular Browser is Firefox, and step (2) worked fine, you may try it under Firefox.
Please report your results here.
I have uploaded a .neoapp file with just one button ... it tells you if a date is before or after today.
1) please check if the neoDateDifference command is recognized at design time or not (command should be in blue, and listed under the sub group neoDate)
If it is NOT recognized, you have an older version of the plugin; please remove it and add it from the first post in this tread or from the latest version of VisualNEOWeb.
2) If it is recognized, continue and run it AS IS under Chrome or Microsft Edge (Chrome Edition)
If it does not show the AlertBox, inspect the cause of the failure and report the error encountered.
If your regular Browser is Firefox, and step (2) worked fine, you may try it under Firefox.
Please report your results here.
Uploaded files:Quote from Chillcoder on October 3, 2021, 4:13 amPerfect in Chrome:
Expirydate=2021-10-27T00:00:00
Now=2021-10-03T15:06:01
SecondsDifference=2019238
DaysDifferece=23.37The error is when testing outside of a browser. (Local App Test) generates the error.
Thank you Gaev. I am suing a JScript solution now as I had to get something working quick, but this will be useful all the same when needed later for something else I am working on.
Perfect in Chrome:
Expirydate=2021-10-27T00:00:00
Now=2021-10-03T15:06:01
SecondsDifference=2019238
DaysDifferece=23.37
The error is when testing outside of a browser. (Local App Test) generates the error.
Thank you Gaev. I am suing a JScript solution now as I had to get something working quick, but this will be useful all the same when needed later for something else I am working on.
Quote from Gaev on October 3, 2021, 6:28 pm@jason-roberts
The error is when testing outside of a browser. (Local App Test) generates the error.
If you mean, when you use the 'Run (from start)' button, yes, it generates a number of errors.
It is my understanding that this button uses Internet Explorer, which is no longer supported ... and has been known to not work in many instances.
Thanks for verifying that it works under Chrome.
The error is when testing outside of a browser. (Local App Test) generates the error.
If you mean, when you use the 'Run (from start)' button, yes, it generates a number of errors.
It is my understanding that this button uses Internet Explorer, which is no longer supported ... and has been known to not work in many instances.
Thanks for verifying that it works under Chrome.

Quote from Phil78 on October 5, 2021, 3:46 pmHi @Gaev, sorry for the delay.
Finally I have downloaded again the app from the beginning of this topic, I do not have anymore an error on the button73.
With firefox I still have the error "dateObjectVariable is not a valid date object" when entering on the page date differences, But it is OK with Edge.
For answering your previous questions, the files was the different versions made available to us. For one, I had forced the language inside the app to see the result for month and day names.
Hi @Gaev, sorry for the delay.
Finally I have downloaded again the app from the beginning of this topic, I do not have anymore an error on the button73.
With firefox I still have the error "dateObjectVariable is not a valid date object" when entering on the page date differences, But it is OK with Edge.
For answering your previous questions, the files was the different versions made available to us. For one, I had forced the language inside the app to see the result for month and day names.
Quote from Gustavo1973 on November 20, 2021, 2:33 am@gaev
Como estas, estoy intentando ver la diferencia entre dos horarios mediante tu plugin sin resultado
Los horarios los recibo de una base de datos en formato tipo texto "HH:MM:SS" , ambos iguales
pero al momento de crear el objeto fecha con tu plugin para poder ver la diferencia me dice que esta mal
no tengo como dato la fecha, solamente las horas
Como estas, estoy intentando ver la diferencia entre dos horarios mediante tu plugin sin resultado
Los horarios los recibo de una base de datos en formato tipo texto "HH:MM:SS" , ambos iguales
pero al momento de crear el objeto fecha con tu plugin para poder ver la diferencia me dice que esta mal
no tengo como dato la fecha, solamente las horas