Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
3answers
2k views

Get seconds and milliseconds from date/time in formula field

Is there a way break out the seconds and milliseconds from a date time field in a formula field? WHY: I want our crew people to use check-in and check-out from their mobile device. However, if they ...
1
vote
0answers
115 views

Apex cpu time limit without change anything [closed]

In my instance I could insert or update record with a batch size of 100 records without problem. The last week and with the same code in production we started to get the apex cpu limit and we have to ...
0
votes
2answers
608 views

How to use “hours” apex:inputField type of time

Is that possible to use only hours? below code I can have hours and minutes but I just need hours to display, is there any attribute that needs to set? Visualforce page: <apex:page controller="...
0
votes
1answer
1k views

About createUser method from Auth.SamlJitHandler

for the implementation of Auth.SamlJitHandler I created a person account A and a User account U which are connected using U.RoleId = A.PersonContactId. I can not avoid this step. This makes the ...
0
votes
1answer
783 views

Need to find whether my time stamp is between the business hours

I am trying to implement SLA for Lead management. So handling all the SLA functionalities on a trigger and Apex class. I need help in getting the current time and comparing it to the defined ...
1
vote
0answers
146 views

Debug Logs Explanation

I'm trying to understand the debug logs Salesforce provides. There are actually two duration(in ms) for every webservice called. One at the top One at the bottom giving up split up method wise The ...
2
votes
1answer
360 views

Time based workflow queue

Currently i am sending notification to owner and manager of lead after 5 days from lead creation based on few user profiles rule criteria in workflow. Now i need to send notificatios only when status ...
2
votes
1answer
71 views

Is it possible to sum all the days of a set of events inside an opportunity and subtract from a total # of days?

I am using opportunities in Salesforce to track professional services engagements. As soon as the opportunity is won and closed, I will fill in a custom field called "number of days" which represents ...
2
votes
1answer
159 views

Changing case owner based on created date with respect to organization time zone

In Apex, I would like to get the cases created in January 2016 based on organization time zone. E.g. Organization time zone is GMT+8 and a case record has been created in 31/12/15 23:00:00 GMT , Is ...
1
vote
1answer
139 views

Why week of year is wrong?

I'm using this code : Time t = Time.newInstance(12, 0, 0, 0); DateTime dt = DateTime.newInstance(Date.parse('22/02/2016'), t); system.debug(LoggingLevel.WARN, Integer.valueof(dt.Format('w'))); It ...
0
votes
1answer
47 views

Want to Check whether the Account create date is within the Business Hour or Not

I am creating a account so while creation it should check whether the created date is within the Business Hour or not. If yes do Action 1 else Action 2.
2
votes
2answers
877 views

MavensMate Project Update - How to determine you need to stop waiting for sync?

Ah, I didn't want to post here but I'm desperate for some kind of guidance. So.. I'm new to MavensMate as of this morning. Looking for a best practice or way to know that my Sublime 3 project update ...
1
vote
0answers
93 views

How to create a Custom Pop Up for Task?

I want to create custom pop up for Tasks which will be opening on specified time . Because standard task pop up will only come for Day wise(Again it will calculate based on starting of the day) and I ...
1
vote
1answer
35 views

Calculate response time for task closure

Please help me in the approach. I have a task object and a field called task executioner.I want to have timer set on the record. When the user will edit the record the timer will start and when it is ...
2
votes
1answer
120 views

Time duration between two time instances [duplicate]

Is there any method for getting duration between two time instances in hours and minutes ?
3
votes
3answers
11k views

How to Get the Current System Time using SOQL

For tests proposes, I need to get the current system date. On Oracle we could use: SELECT SYSDATE FROM DUAL On SQL SERVER, we can use: SELECT GETDATE() AS CurrentDateTime How to query the system ...
-1
votes
1answer
253 views

need to store date time based on customer timezone

Is it possible to calculate the timezone based on the country/state field value of a record? If so how? Is it possible to display the time field with the timezone it relates to? If so how?
1
vote
1answer
101 views

Adding a field into Workflow Time Trigger Edit Drop Down Menu

New here. I'll be as brief as I can. I'm trying to trigger a mail before a subscription expiry date. I have two tables: A 'Contact' Table and an 'Account' Table. How can I add an 'Account Expiry' ...
4
votes
1answer
3k views

how to use apex:inputField type of time

According to the docs on apex:inputField: http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_inputField.htm I can use type="time". However when I try this with a date-time field ...
1
vote
3answers
1k views

Formula field for the Difference between 2 time values in picklists

I am very new to Salesforce and have to write a formula field based validation. I have been trying but so far haven't been able to write a correct formula. My requirement is as follows: I have 2 ...
3
votes
2answers
2k views

What datatype for time only? (without date)

What is the correct datatype for a field that represents a time of day for a recurring event? I'm building a class enrollment system (for a hypothetical university, as a school project), and I need ...
2
votes
2answers
729 views

como puedo resolver este error que me aparece / how to resolve error: 'apex cpu time limit exceeded'

tengo mas de 4000 registros en cada uno de los objetos como puedo resolver el error que me aparece de apex cpu time limit exceeded public class ConciliacionController { //declaracion de variables ...
1
vote
1answer
2k views

Convert system.currentTimeMillis() to MM-dd-yyyy HH:mm:ss.SSS in salesforce

I want the following to happen in salesforce. system.currentTimeMillis() to MM-dd-yyyy HH:mm:ss.SSS in salesforce. Anyone could please explain me.
1
vote
3answers
2k views

Convert json string of datetime to a date

I have the following value coming through from a json payload, I need to convert it to a date value in Salesforce. The json body contains this: "ExpiryDate":"/Date(1617145200000+0100)/" When I ...

1
2