You need to sign in to do that
Don't have an account?
Noam.dgani
Datetime issue
Hi All
My scenario is as follows:
I have a REST service that recieves a datetime string with milliseconds.
i need to populate a Datetime field in SF with that value.
the problem is that converting a string to datetime ommits the milliseconds.
i can manipulate the string to any form that will work - but none seem to.
any ideas?
Got the answer in case anybody needs it:
lets say that the string you are getting looks like this:
2012-07-07 15:49:26_554
(its usually with period after the seconds - but i got it with underscore)
use the following to get the milliseconds into the datetime in your object: