Date field (Access database) - Forum

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

Date field (Access database)

Hi,

I'm creating an application that connects to an access database.
When I have to write the date on a database field I have no problems.
When I use the "SetVar" function, because I want to copy a date from a field of a table to a field of another table, it doesn't write the date correctly.

this is the date: 23/03/2023
this is what he writes me: 0,00378975119459548525

why do i have this problem?
Thank you

@nikyred note that if you use something like this:

SetVar "[myvar]" "23/03/2023"

VisualNEO Win will do the math operation and assign the result to [myvar] (0.00378975119459548525)

But if you use this (using an exclamation sign), the data will be assigned as it is, as a string, without doing any math:

SetVar "[myvar]" "!23/03/2023"

So [myvar] will store "23/03/2023" instead of 0.00378975119459548525

Regards.

 

Vadim has reacted to this post.
Vadim

Perfect thanks.
Now function