function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sagar PawarSagar Pawar 

How i call System.now() from java class

Hi,

 

 

How i call System.now() method from java class? please help me on this as soon as possible.

bob_buzzardbob_buzzard

Why would you try to call a salesforce method from a java class - java has its own date/time functionality.

souvik9086souvik9086

Please post java related questions in the below page

 

http://boards.developerforce.com/t5/Java-Development/bd-p/JAVA_development

 

Thanks

Sagar PawarSagar Pawar

Hi, Thanks for your reply.

 

My requirement is i want to get current date and time of salesforce server from java class.

 

regards,

sagar

bob_buzzardbob_buzzard

There's a method in the Salesforce API for this - the link below gives sample java code: 

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_getservertimestamp.htm