spartacus
16th June 2003, 18:19
Is there an easy way, to set the time part of an utc date field to a certain value let's say to 23hours 59 minutes ?
Spartacus
NPRao
16th June 2003, 20:20
Spartacus,
I am guessing you are looking for this function -
date.to.utc() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_date_time_zones_date_to_utc)
If not, then can you please state clearly whats the requirement?
FransG
17th June 2003, 09:37
Spartacus,
If you do already have a utc variable it is easier to use this combination of functions:
function set.date.to.end.of.day(ref domain tcutcs io.date.utc)
{
|* Declare local variables.
long dummy.long |* Dummy Long.
long local.date |* Local Date.
dummy.ret.val = utc.to.local(io.date.utc, local.date, dummy.long)
dummy.ret.val = local.to.utc(local.date, ((60*60*24)-1), io.date.utc)
}
spartacus
17th June 2003, 10:30
Hi all,
thanks, this little code works very fine :)
Spartacus