abby13
6th February 2009, 12:32
Hi All,

I have a date string in the format,dd-mon-YY, for eg
(28-Aug-08).

I want to convert this string date into UTC.

Itried using the below function
temp.date = input.to.utc(inpdate,"%D(%02d-%02h-%02y)")

However i always get return value -1 which is incorrect.

Can someone suggest what is wrong with this function or any suggestion?

Thanks

abby13

toolswizard
6th February 2009, 15:13
You may be using the wrong function. Have you tried inputstr.to.utc?

BaanInOhio
6th February 2009, 16:00
http://www.baanboard.com/baanboard/showthread.php?t=50785

See my explanation in the 2nd post down.