Copy Function, Name In Function - Question
sharpeFeb 22 2010 — edited Feb 22 2010I'm attempting to use the following code in a When-New-Item Instance trigger to set this Date item to the current date:
copy(sysdate, name_in('system.current_block')||'.'||name_in('system.current_item'));
The Date item has the format mask of 'mm/dd/yyyy'. The problem is that the value is coming back as '02/22/0010' instead of '02/22/2010'. What am I doing wrong?