JustaPackfan
15th February 2006, 19:24
Hello,
Looking for example of how to use inputstr.to.utc function where I would pass in my own format code (not using a stored %u### format).

I continue to get errors (-1). I've tried using such commands as shown below:

out.utc = inputstr.to.utc("11/12/2006", "%u(%02m/%02d/%04Y)",
"14:02:33", "%U(%02H:%02m:%02s)")

out.utc = inputstr.to.utc("11/12/2006", "%D(%02m/%02d/%04Y)",
"14:02:33", "%U(%02H:%02m:%02s)")

The "time format" appears to work, however I am not able to get the "date format" to work. I determined the time format was working because the following code worked (but I am looking to avoid the %u### formats):

out.utc = inputstr.to.utc("11122006", "",
"14:02:33", "%U(%02H:%02m:%02s)")

System Information:
Running Baan V, SSA BW 7.6a.1 (4GL Engine Corelli-wt, build 1571 (2005/11/21 10:15)), on a UNIX (HP-UX) platform (HPUX11.00) with Windows NT front-end. Portingset: 7.1d.10

thank you for any thoughts

lbencic
15th February 2006, 19:34
Hi -

Can you post what system you are using - you can fill this in on your profile. Baan IV, V or LN?

JustaPackfan
15th February 2006, 20:16
I've posted my system info. My problem may be that Baan has taken away the ability to pass in a format code for dates. My current Baan V helps shows I can pass in a date.format => date.format Indicates the format of the date string, by using the substitution symbols %Dxxx[, lang] or %D(format)

However when I search Baan code for any example, all standard code uses the %Dxxx[,lang] or %uxxx[,lang] syntax. I was hoping to use the %D(format) or %u(format) syntax.