97
Views
7
Comments
How can i user a put data time mask

Where can i put a input date time mask, to formar the input, for exemplo: dd/mm/yyyy HH:00?

2018-06-05 16-54-03
Maria da Graça Peixoto

Which component are you using?

UserImage.jpg
Erik Tavavares

Input with input type:  Date Time

2022-02-25 19-42-59
Srinivas K Singadi
AI Generated

Hello Erik Tavavares

 you can use the InputMask widget to format the date and time input as dd/mm/yyyy HH:00. Here's how you can do it:

  • Add an InputMask widget to your form or screen.
  • Set the widget's Mask property to "99/99/9999 99:00" to match the dd/mm/yyyy HH:00 format.
  • Set the widget's InputFormat property to "DateTime".
  • Set the widget's Value property to the entity attribute or variable that will hold the date and time input value.
  • Optionally, you can set the widget's Placeholder property to provide a hint to the user on the expected input format.
  • By setting the Mask property to "99/99/9999 99:00" and the InputFormat property to "DateTime", the InputMask widget will only allow input that matches the specified format. This will prevent users from entering invalid date and time values.

Additionally, the widget will automatically format the input as dd/mm/yyyy HH:00 as the user types, which will improve the user experience and reduce the likelihood of input errors

This answer was AI-generated. Please read it carefully and use the forums for clarifications
2020-07-02 13-32-59
Max de Groot

If you have a datetime type record you can just use the FormatDateTime() function available in OutSystems. This will allow you to set any format to the date time. 

Max

UserImage.jpg
Erik Tavavares

I can't find the  InputMask.



The datetime is not recorder yet, it willbe inputed by the client and saved in an external database. It can be salved date time HH:00, exact hours.

2023-02-13 15-34-45
BabyBear

I suggest you check in forge for Input Masks

Example: https://www.outsystems.com/forge/component-overview/7838/inputmask-react


2018-06-05 16-54-03
Maria da Graça Peixoto

Like BabyBear you should upload a component from the forge to use there 

And there are others:
for traditional you have  https://www.outsystems.com/forge/component-overview/7729/input-mask

for mobile  https://www.outsystems.com/forge/component-overview/5572/decimal-input-mask

just write "mask" in the search field from the forge . 

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