Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Input Mask for Date and Time Entry

Featured Replies

Hi,

Can anyone give me some suggestions on setting up an input mask so that when I enter date or time I don't have to type in the / or : seperators and can just type in the numbers instead? Thanks.

Hi

check this custom function for the date problem

BTW that custom wasn't made for american formatted date, but it will be no difficult to modify. (you have to enter that calc on a AutoEnter/Replace field)

Hi

if you have read that custom, you'll know that the result will be a PseudoDate text (not a real date). To get a real date you have to use the function:

GetAsDate (PseudoDate)

The same will be for the time and the calc is:

Let(

isNumber = If( Filter ( yourPseudoTimeField ;"1234567890" ) = yourPseudoTimeField;1;0);

Case(

isNumber;

Case(

Length ( yourPseudoTimeField ) = 1; "00:00:0" & yourPseudoTimeField ;

Length ( yourPseudoTimeField ) = 2;"00:00:" & yourPseudoTimeField;

Length ( yourPseudoTimeField) = 3;"00:0" & Left ( yourPseudoTimeField ; 1 ) & ":" & Right ( yourPseudoTimeField ; 2 );

Length ( yourPseudoTimeField) = 4;"00:" & Left ( yourPseudoTimeField ; 2 ) & ":" & Right ( yourPseudoTimeField ; 2 );

Length ( yourPseudoTimeField) = 5;"0" & Left ( yourPseudoTimeField ; 1 ) & ":" & Middle ( yourPseudoTimeField ; 2;2 ) & ":" & Right ( yourPseudoTimeField ; 2 );

Length ( yourPseudoTimeField) = 6;Left ( yourPseudoTimeField ; 2 ) & ":" & Middle ( yourPseudoTimeField ; 3 ;2 ) & ":" & Right ( yourPseudoTimeField ; 2 )

);

"")

)

  • Author

Thanks for coming to my rescue. Amazing that there isn't an easier way to do this. Once upon a time ago I used Access and it had a much easier way to setup input masks. Oh well. Thanks again!

Here is a little file for your Date problem.

Date.zip

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.