Description


\"UnifAce do have several function to extract year,month or day from a date variable. But how to assign year, month and/or day to a date variable? $date(\"\"01.01.2001\"\") will not work properly on customer site, as you don\'t know the current language settings. So there is a need to assign dates from string (constants) or other variables indepent of the any settings.\"

Use Case


\"New, extended syntax for $date variables date v_DATE numeric v_YEAR,v_MONTH,v_DAY endvariables v_DATE=$date(v_YEAR,v_MONTH,v_DAY) Nice to have: variables date v_DATE string v_FORMAT string v_STRING endvariables v_STRING=\"\"01.01.2001\"\" v_FORMAT=\"\"dd.mm.yyyy\"\" v_DATE=$date(v_STRING,v_FORMAT)\"

Importance


To assign values to a date variable in all cases (language settings) is a tricky thing and is a leak of performance

Type


Scripting/Coding

Operating System


Not Applicable

Status


Open

Leave a Reply