You need to sign in to do that
Don't have an account?
prady
Unixtimestamp value for an salesforce date
Hi,
How can i get the unixtimestamp value of a date from salesforce?
I need to pass the date value as unixtimestamp to flot graph library.
thanks
Prady
By unix timestamp, do you mean milliseconds since the epoch (1/1/1970)?
If so, use the DateTime.getTime() method
All Answers
By unix timestamp, do you mean milliseconds since the epoch (1/1/1970)?
If so, use the DateTime.getTime() method
I don't know why bob's answer got a thumbs down. DateTime.getTime() provides the unix number down to the millisecond.