Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
143 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
329 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
70 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
146 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
131 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
44 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
875 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
33 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
110 views

Time duration between two time instances [duplicate]

Is there any method for getting duration between two time instances in hours and minutes ?
2
votes
3answers
10k 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
240 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
99 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
713 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.
0
votes
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 ...