22
Views
5
Comments
Solved
Date time
Question

Oi, pessoal!


Não consigo compartilhar o aplicativo porque é da empresa onde trabalho, então terei que explicar.



Tenho uma aplicação que recebe valores inteiros e depois adiciona-os a uma entidade em campos com formato de data. Até agora isso atendia a necessidade, mas foi solicitada a inclusão do campo timer.

Então alterei o tipo do campo da tabela para Date Timer e agora preciso inserir os valores do timer nos campos nas próximas atualizações.

Fiz a inserção no campo da seguinte forma: 
uma variável DateLimitInteger do tipo date timer recebe a seguinte expressão:TextToDate(Year(CurrDate()) +"/" +IdentifierToInteger(Entities.Month.Jan) + "/"+DateLimiteInteger. JanDia+HoraCurr())



Neste caso, a entidade estática são os valores do mês do ano

e DateLimiteInteger.JanDay são os dias inteiros que o usuário informa no formulário

------------------------------------------

EDIT By Moderator:

I can't share the app because it's from the company I work for, so I'll have to explain.

I have an application that receives integer values and then adds them to an entity in fields with a date format. Until now this met the need, but the inclusion of the timer field was requested.

So I changed the table field type to Date Timer and now I need to insert the timer values into the fields in the next updates.

I entered the field as follows:
a DateLimitInteger variable of type date timer receives the following expression:TextToDate(Year(CurrDate()) +"/" +IdentifierToInteger(Entities.Month.Jan) + "/"+DateLimiteInteger. JanDia+HoraCurr())

In this case, the static entity is the values of the month of the year and DateLimiteInteger.JanDay are the entire days that the user enters in the form

Solution

You have already tried to create a new date, doing something like this for example:

NewDateTime(            

                 Year(CurrDate()),

                 IdentifierToInteger(Entities.Month.Jan),

                  DateLimiteInteger. JanDia,

                 Hour(  CurrTime()) ,

                 Minute(CurrTime()) ,

                 Second(CurrDateTime())   

               )

Using New date it was possible to add, thank you!



Great, I'm glad I helped, keep up the good work.

Hello,

I didn't understand your question at all.

And have in mind that if your company is using Outsystems you can open a support ticket. This way an Outsystems specialist can check what's going on.

Solution

You have already tried to create a new date, doing something like this for example:

NewDateTime(            

                 Year(CurrDate()),

                 IdentifierToInteger(Entities.Month.Jan),

                  DateLimiteInteger. JanDia,

                 Hour(  CurrTime()) ,

                 Minute(CurrTime()) ,

                 Second(CurrDateTime())   

               )

Using New date it was possible to add, thank you!



Great, I'm glad I helped, keep up the good work.

Hi Fabiano,

This is an English-language forum. Please use English to ask your question, thanks.

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