
Quote from CSSystems on May 1, 2021, 6:18 pmIs there a chance that there is a function or plug-in that would determine the day of the week from a date?
Working on a scheduling program where I would like to show the day of the week with the date.
Is there a chance that there is a function or plug-in that would determine the day of the week from a date?
Working on a scheduling program where I would like to show the day of the week with the date.
Quote from rasl on May 1, 2021, 7:12 pmTry this
{NeoBook Function}
Version=5,70
Language=VBScript
Param=[%1]|Text|Fecha:
Param=[%2]|Variable|Variable con el resultado:
{End}
publication.nbSetVar "[%2]", Weekday("[%1]", 1)
Try this
{NeoBook Function}
Version=5,70
Language=VBScript
Param=[%1]|Text|Fecha:
Param=[%2]|Variable|Variable con el resultado:
{End}
publication.nbSetVar "[%2]", Weekday("[%1]", 1)

Quote from CSSystems on May 2, 2021, 11:00 pmThanks for your answer.
I may need some help.
I have to study using Functions (adding and using)
I will look in help.
Thanks for your answer.
I may need some help.
I have to study using Functions (adding and using)
I will look in help.
Quote from rasl on May 3, 2021, 2:39 pmCopy and save to a WeekDay file, save it in the functions folder.
Use it with the Call command.
Call "WeekDay" "03/05/2021" "[yourVar]"
salu2
Copy and save to a WeekDay file, save it in the functions folder.
Use it with the Call command.
Call "WeekDay" "03/05/2021" "[yourVar]"
salu2

Quote from CSSystems on May 3, 2021, 7:25 pmThank you so much. I believe I have it working.
I seem to have avoided functions.
Maybe not so much now.
Thank you so much. I believe I have it working.
I seem to have avoided functions.
Maybe not so much now.

Quote from DaviddeArgentina on May 6, 2021, 9:49 pmHi overthere,
Check your locale settings about language. May be several inconsistences using literals.
By example; Sábado (Saturday in spanish) could be "Sábado" or "Sabado" (depending on your operating system version)
My 0.01
David de Argentina
Hi overthere,
Check your locale settings about language. May be several inconsistences using literals.
By example; Sábado (Saturday in spanish) could be "Sábado" or "Sabado" (depending on your operating system version)
My 0.01
David de Argentina
Quote from PaulJonestindall on May 8, 2021, 3:14 pm@daviddeargentina
With the above code I receive a number. Obviously the number of the day of the week. A series of If/Then actions solves that but is there an alternative to get the name of the day as you seem to be alluding to?
With the above code I receive a number. Obviously the number of the day of the week. A series of If/Then actions solves that but is there an alternative to get the name of the day as you seem to be alluding to?

Quote from DaviddeArgentina on May 8, 2021, 5:12 pm@pauljonestindall
Take a look of:
https://www.w3schools.com/asp/func_weekdayname.asp
Greetings from Buenos Aires
Take a look of:
https://www.w3schools.com/asp/func_weekdayname.asp
Greetings from Buenos Aires
Quote from PaulJonestindall on May 10, 2021, 12:09 pmI keep getting a type mismatch.
I keep getting a type mismatch.

Quote from Vadim on May 20, 2021, 1:24 pm@pauljonestindall
Try the plugin asDateTime (Andrei Solodyankin)
Command asDTDayOfWeek
Try the plugin asDateTime (Andrei Solodyankin)
Command asDTDayOfWeek

Quote from CSSystems on May 24, 2021, 5:47 pmDid realize there was so much active on this question.
I have installed the asDateTime plugin. But I am a little rusty on use plugins.
Not sure how to use this one. Not sure what the fields are asking for because of language difference.
Ideas for me?
Did realize there was so much active on this question.
I have installed the asDateTime plugin. But I am a little rusty on use plugins.
Not sure how to use this one. Not sure what the fields are asking for because of language difference.
Ideas for me?

Quote from Vadim on May 25, 2021, 3:49 pm@cssystems
In the example project, click the "Get Day of the Week by Date" button. The number of the day of the week appears in the text object.
In the example project, click the "Get Day of the Week by Date" button. The number of the day of the week appears in the text object.
Uploaded files: