[SOLVED] Seems that no one ever tried to read an unassigned date-field, or?

To use, to read or to work with a date-field is working absolute fantastic, as long as it is assigned to a database-field.

I run in problems after I took a new date-field (not assigned to a date-field in a DB) and tried to work on it. The value returned from
the field was not a string like “2012-05-15” nor a datetimestamp or something other I know.

see this topic http://www.scriptcase.net/forum_en_us/index.php?topic=6351.msg16171#msg16171

I put it to Bugs, because I cannot see the difference between assigned or not assigned to a db-field in handling. As I understand it
should have the same behaviour in both cases.

Re: Seems that no one ever tried to read an unassigned date-field, or?

Hello EricB,

Could you elaborate what error you are running into? You are trying to store a date-field data into a varchar db-field? I could not understand very well.

regards,
Bernhard Bernsmann

Re: Seems that no one ever tried to read an unassigned date-field, or?

No, i did not try to store in a db-field. As long as the date field is assigned to a db-field, everything is working fine.

Just try to take a clean control-application, put a date field and a text field into it.
Use a ajax-onchange event to read the changed datefield and put the {datefield} into the {textfield}.
You will see something i cannot explain, some kind of numbers with one point somewhere.
If you try this with a field assigned to a db-field you would get the date of {datefield} in the {textfield}.

Solution was:

Go to the field attributes and in the block “Values Format” clear the field “Internal Format”.
as jsbinca found out. As you can read the story at: http://www.scriptcase.net/forum_en_us/index.php?topic=6351.msg16171#msg16171