Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [time]

The tag has no usage guidance.

0
votes
1answer
37 views

Calculate time difference between two date time fields

I have a process builder by which I am calculating the time difference between NOW() and another Case object date field. My formula goes like this Time_Spent__c = NOW() - Start_Time__c However ...
1
vote
1answer
273 views

How to remove AM & PM from Time field?

I have a custom field with DataType is TIME. I want to remove AM and PM from the Field. How can I do this?
0
votes
3answers
124 views

Merge Date & Time field in to datetime field using formula field

We have to separate fields to pick appointment date & appointment time in Custom object. Now we have to filter out appointments between two dates (w/ time), so I need to compare appointment date &...
1
vote
1answer
81 views

Using the wait activity by attribute for time values only

I have a data extension that has all our subscribers and a column with the most optimal hour of the day to send them an email. I want to reference this in my journeys and add this attribute in the ...
1
vote
1answer
566 views

How to output time field in lightning component

I have used a time field which I want to show in a lightning component When I fill 8:00 in my field my result is 30600000 in my lightning component. I have searched for a time tag or formatting but ...
1
vote
3answers
240 views

Time Field on Data Load - “value not of required type: 5:33 PM”

I am attempting to insert some records on a custom object that requires a value in the Time Received field, of type Time. Within an existing record (created manually) the value inside the detail page, ...
3
votes
1answer
598 views

Cannot deserialize instance of time from VALUE_STRING value

I'm trying to parse a Time field from my lightning component to my apex controller by using JSON and deserializing it in apex into an existing Object. But unfortunately I'm always getting the error ...
0
votes
0answers
83 views

Calculating Average Time in Salesforce

I'm looking to calculate the average time in salesforce that users are logging off by week. I inputted data in a date/time format into salesforce and used the following formula to get just time in ...
0
votes
1answer
73 views

Making 24 hours difference in formula

what is 1.8 in this expression. I have seen people using now() + (-1.8) or now() + (1.8) for making 24 hours difference. What exactly is 1.8
0
votes
0answers
15 views

Enable using time type field in our production

We want to use the new time field in prod. However, it doesn't seem to be available yet in our prod. It seems to be there in our sandboxes though. Is there a way we can enable this beta feature?
0
votes
2answers
531 views

Formating the new time field in Visualforce

I am trying to format the new Time field type in Visualforce but with no success. I'm trying to use the same method as i use for date formatting but it does not compile my code with the error: '...
0
votes
1answer
163 views

Time comparison in Apex

I have below code Time startTime = objAvailableTime.StartTime; Time endTime = objAvailableTime.EndTime; List<Time> lstTime = new List<Time>(); ...
0
votes
1answer
44 views

Application limits

My collegue has received the below notification. We have never received this before. Can anyone please advise what action needs to be taken? Your organization has reached its hourly limit for ...
2
votes
0answers
222 views

How to Avoid exceeding CPU Time Limit in Test Classes?

I am currently updating test classes in our org and it seems that most of them are exceeding the CPU Time Limit. They are using the @testSetup to create a lot of test data and it seems that these DML ...
0
votes
1answer
97 views

How to Create Time Lapse duration field

In our organisation multiple teams working on a single Business process (record type of Case). Means multiple teams works on a single Case. So, we have a requirement to calculate how much time taken ...
0
votes
4answers
3k views

How can I get my correct current local time?

I need to get the current time but to be in type DateTime. I use: DateTime now = System.now(); but it returns wrong time. I execute the code in 2017-08-04 00:38:46 AM but it returns 00:38:46:023 ...
0
votes
1answer
82 views

DateTime set to an hour earlier

I have an object of type Time startWorkingTime and object of type DateTime nextBusinessDay. I want to create new object of type DateTime based on startWorkingTime and nextBusinessDay. Here is my code:...
0
votes
0answers
416 views

Creating Time picker in lightning

Can Anyone please help me with creating time picker in lightning ? There is a component ui:inputDateTime for having time & date picker both at the same time and there is a single component for ...
0
votes
0answers
34 views

How to show image dynamically as well as in sequence based on time stamp

I am having one requirement where i have to show 12 different images on to a VF page. The condition to show these images are, 1. There are 12 check boxes on standard layout of Lead object. 2. When ...
0
votes
1answer
316 views

Datetime field value always show in GMT for all users

I have a requirement for a particular date time field that should be shown in GMT time zone always irrespective of the logged in users time zone. Is that feasible to do? This requirement is for a ...
1
vote
2answers
283 views

Storing time-stamps with millisecond precision

When you have automated processes interacting with your system, it is very common for multiple things to happen within the same second. In order to prove that these events happened in the correct ...
0
votes
0answers
15 views

Unable to update users timezone correctly [duplicate]

User has requested to update timezones. e.g - (GMT-08:00) Pacific Standard Time (America/Los_Angeles) for a user. I update TimesZoneIdKey of this user as - America/Los_Angeles. Expected - (GMT-08:...
1
vote
1answer
397 views

Filter Reports by the Time of their CreatedDate

I figured that the CreatedDate will not show the time in the reports section. So I made a DateTime formula field to take the value from CreatedDate. Now this shows the time value inside the reports. ...
0
votes
1answer
27 views

Test scheduled class

I am scheduling a class which performs some computations I want to know how to track the execution of class apart from viewing scheduled jobs as I have scheduled the class to execute at system time ...
1
vote
0answers
40 views

Alternatives to Time Field? [closed]

SalesForce does not have a Time field type for sObjects which is a real pain. I am working on a scheduling app where users and facilities specify daily blocks of time when they are available (open). ...
0
votes
0answers
64 views

My time trigger workflow fires immediately

I'm trying to set up a workflow the sends and email alert as soon as a customer registers for an event my company is hosting. I want it to send a booking confirmation email as soon as they register. ...
0
votes
1answer
60 views

Add 2 Different Times and Return value in time(Formulae field) in HH:MM format

I need results of two fields of type text in time format to be the same time format and then the result has to be time of HH:MM format aswell text in formulae field
0
votes
1answer
31 views

Unable to create time datatype field through visualforce page

I tried to write a formula and extract time field through date time field. But user needs the time field because of specific requirement. I tried to create a Visualforce Page with Static Resources ...
2
votes
0answers
198 views

Account Time Settings

I have set up the Marketing Cloud time zones to GMT. Issue is that every other time setting (automations, imports, etc) run on Central Time. Is this a default setting or is there a way to set ...
1
vote
1answer
343 views

Formula for writing a specific Day of Week date value?

Objective: create a List-View Button that writes the date value of the immediately upcoming Monday to a field in the selected record(s) E.g. if Monday is Dec 5, the expected output for writing a ...
0
votes
1answer
477 views

DateTime formula field to compare to a specific time

I am creating an entry criteria for a milestone to kickoff. A separate workflow rule populates a DateTime field (RMA_Time__c) with NOW(). When RMA_Time__c is populated and the populated time is before ...
0
votes
1answer
54 views

I am getting the following error message - Error: Unknown property 'OpportunityStandardController.line2

Error: Unknown property 'OpportunityStandardController.line2 here is my code up to where I get stuck: <apex:page standardController="Opportunity" showHeader="false" renderas="pdf"> <table ...
1
vote
1answer
52 views

How to utilize buisnessHours class instead of time class

I have a main if statement in my class that utilizes CreatedDate.hour() to execute certain code between 6pm and 8.59am and the ELSE is 9am to 5.59pm which would be within business hours if I could get ...
1
vote
2answers
529 views

DateFormat Function in Marketing Cloud

I would like to have a Date like this: 2016-10-14T08:26:33Z But when i do this: %%=FormatDate(DateAdd(NOW(), "6", "H"), "yyyy-mm-ddT","hh:mm:ssZ", "nl-NL")=%% It returns: 2016-10-14T 09:04:26-...
2
votes
1answer
360 views

AutoSave information every 5 minutes- How to implement?

How would I go about triggering a apex controller method every certain period of time? This is the general idea I need to implement: "Autosave information every 5 minutes on a visual force page". I ...
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
107 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
412 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
841 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
422 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
103 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
239 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 ...
3
votes
1answer
56 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
129 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
111 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
32 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
747 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
91 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
31 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
96 views

Time duration between two time instances [duplicate]

Is there any method for getting duration between two time instances in hours and minutes ?