313
Views
15
Comments
Solved
Outsystem default date and Time
Question

Hi Team,

When I am saving the form having date and time as separte field of date and time resp,I am not able to save them in reactive web app.It is storing as  below in table

1 Jan 1900
        00:00

Please let me know how to save the form date and time values which user has entered.

Thanks,

Ujwala

2021-01-19 14-07-32
Tom Zhao
Solution

Hi ujwwala  


Please provide the assign node screenshot.

By the way, Why you need Time and Date as local variables.

You can bind inputs to GetBookingSlotsList.Current.BookingSlot.Date and GetBookingSlotsList.Current.BookingSlot.Time directlly.

Kind Regards,

UserImage.jpg
ujwala

Hi Tom,


Thank you for the solution suggested above.It i working now.

2021-01-12 13-21-28
Kadu Borges

Hi Ujwala,

Could you share the oml file?
Despite of it, you should check if the input variables are correct, because those values that you listed are the default values.

Best regards

2021-01-19 14-07-32
Tom Zhao

HI ujwwala

Pleased to provide more detailed information.

The value you mentioned is the default value

Kind Regards

UserImage.jpg
ujwala

Hi Team,

I am not using datepicker but using  input types as date and time resp.

Capture1.JPG
UserImage.jpg
ujwala

One more snapshot for time,How to save the date and time in table.


Capture2.JPG
2026-02-26 06-29-24
Rahul
 
MVP

HI Ujwwala,

Make sure when you are using CreateorUpdate entity action right field assign to respective field once check you assignment. or provide code of images.


Hope this will help you.

Regards

Rahul

UserImage.jpg
ujwala

2026-02-26 06-29-24
Rahul
 
MVP

In your assignment please check i think you missed it.

proper date filed assign to date and time filed with Time with entity.


UserImage.jpg
ujwala

Hi Rahul,

PLease find.


2021-01-19 14-07-32
Tom Zhao
Solution

Hi ujwwala  


Please provide the assign node screenshot.

By the way, Why you need Time and Date as local variables.

You can bind inputs to GetBookingSlotsList.Current.BookingSlot.Date and GetBookingSlotsList.Current.BookingSlot.Time directlly.

Kind Regards,

UserImage.jpg
ujwala

Hi Tom,


Thank you for the solution suggested above.It i working now.

UserImage.jpg
ujwala

UserImage.jpg
ujwala

still saving as default date and time as 00:00 in table

2021-01-12 13-21-28
Kadu Borges

Hi Ujwwala, 

in your Assign, you are setting the Date and Time variables with the database values, that is your problem. You must invert it.

Regards

UserImage.jpg
ujwala

Hi All,

Thank you it is resolved,local variables were not needed,binded inputs to aggregate current record.It is working now.

Thank you

2021-01-19 14-07-32
Tom Zhao

Hi ujwwala  

You are welcome, I'm glad I could help.

Regards

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