greil.juergen
17th February 2010, 12:27
Hello,

does anyone know how to convert a date like 2010-02-17 to the correct Baan date 733820 in UNIX?

I've found a Windows utility which converts fine, but I can't use it automated in UNIX. Does anyone know a tool or command which helps me?

mark_h
17th February 2010, 14:29
This is the correct forum - the code and utilities is for sharing code with others.

Are you talking in a session script?


| Parse out the last counting date
num.day = val(read.date(4;2))
num.month = val(read.date(1;2))
num.year = val(read.date(7;4))
upd.date = date.to.num(num.year, num.month, num.day)

greil.juergen
17th February 2010, 14:54
Hi, thanks for your answer.
I'm searching for a way to do that directly in UNIX (korn shell).

Juergen
17th February 2010, 15:50
Hi,

check the small unix dateplus tool on http://www.orlandokuntao.com/mf_nerd_dateplus.html

Regards,
Juergen

greil.juergen
18th February 2010, 14:29
Hi Juergen,

thanks a lot for that link! Works fine :)