189
Views
3
Comments
Solved
Add minutes does not add time
Question

Hi

I am currently working on mobile application.

I am converting epoch time which I am getting from API to readable time and date by using Extended DateTime forge component.I am using function unix _milliseconds_to_datetime. 

 It is correctly giving me date and time but in GMT.

I want it in IST, so I am adding 330 MINUTES using ADDMINUTES(). But only date is increasing.Time become 00:00:00. 

How to rectify this?

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Shubham,

I implemented the AddMinutes() built-in action and it is working as expected:



Check this: https://sbsam.outsystemscloud.com/Sample_App/AddTimeScreen.aspx


Could you please check the data type of the attribute or Variable, it should be DateTime data type.


Regards,

Benjith Sam

UserImage.jpg
Shubham Agarwal

Benjith Sam wrote:

Hi Shubham,

I implemented the AddMinutes() built-in action and it is working as expected:



Check this: https://sbsam.outsystemscloud.com/Sample_App/AddTimeScreen.aspx


Could you please check the data type of the attribute or Variable, it should be DateTime data type.


Regards,

Benjith Sam

Yup. Variable was of type date instead of DateTime.

Thanks.


2016-04-22 00-29-45
Nuno Reis
 
MVP

 What Benjith said.

Your variables are called TempLabelDate and TempTime. Their types by default are Date and Time.

From what you are saying, you wanted a DateTime.

Just change that and it should work.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.