Mysql date to dateinput object - Forum

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

Mysql date to dateinput object

I try to load a date I get from mysql query to a date input object but without luck.

I recieve from mysql date format 2025-01-22 I can see it as variable (when I load to a textinput object) but I try many ways to load this data to a dateinput object and I can't .I do something wrong of cource.

Any idea how I can load this data to a dateinput object?

@ecotip, try this:

SetObjectAttribute "DateInput1" "value" "2025-01-22"

Regards.

javadrajabihakami has reacted to this post.
javadrajabihakami

I notice something strange and want to ask you if it is normal.

when I make a query and load data to a neotable object all data can be used,for example I take a date value and can make anything with it

but when I make a query to take the some data directly from database this variable can be shown on as text but you can do nothing else with it like it is empty ot null

for exampleI have a  [mystring] with value "test' when comes from neotable  is usable I user srtlen to take len or make conditional logic like if [mystring] == 'test" and others

but when the same string comes directly from a mysql query I can use it as text on objects but can do nothing else if you try to make logical or take strlen is not working like the variable is null or no type

Do you notice something similar or maybe I do something wrong?

@ecotip use Consolelog to take a look at the content in the WebBrowser Console.
You are probably trying to work with an Array rather than a single value variable.