Skip to main content
Nintex Community Menu Bar
Solved

Can I specify time without date in Workflow Form?

  • September 24, 2026
  • 7 replies
  • 99 views
  • Translate All

Forum|alt.badge.img+2

I want the form user to enter time-of-day on and off times, so I am not interested in the date component, just the time, including hours and minutes.

There doesn’t seem to be a way to turn off date (just time) in the DateTime control and the alternative solution I started to develop looked like it was going to be very clunky (choice or number control for the hour, number for the minutes, parse that out with a formula, validate the hours and minutes are 0-12, 0-60...etc) 

Worst case, I’ll provide instructions to select today’s date and the time, then will parse it out after submittal.

Is there a more elegant way to gather this info, though? Thanks in advance!

Best answer by Simon Muntz

Hi ​@Chris Wheeldon,

If you don’t want to use CSS, you could use a Text Short control and use a Regular expression to validate it.

This Regex will validate a 24-hour time HH:MM

^([01]\d|2[0-3]):[0-5]\d$



 

 

View original

7 replies

Forum|alt.badge.img+11
  • Nintex Employee
  • September 24, 2026

Hi ​@Chris Wheeldon,

You could potentially do something using the Advanced Styles option and Custom CSS to hide the calendar that pops up for the selection for the DateTime control.  Then setting the default for the control to date now would set it as todays date with the current time so you have the correct day on it.  You’d still have to parse it on the WF side for just the time but it’d be a cleaner selection than the choice or number controls.

Translate

Forum|alt.badge.img+2

​@brent_read  thanks for that suggestion! I wondered if I would have to do something “custom” like that but wasn’t sure where to start.

The workflow side isn’t an issue - I can use regex or something, since the users won’t need see it.

Translate

Forum|alt.badge.img+11
  • Nintex Employee
  • September 24, 2026

I spun it up real quick and added timeOnly as the CSS class to the control to get it to only show the time.  This is what I used:
 

.timeOnly div.flatpickr-innerContainer {visibility: collapse;height: 0px;}
.timeOnly div.flatpickr-month {visibility: hidden;height: 0px;}
.timeOnly .flatpickr-action-today {visibility: hidden;}

 

That makes the picker appear as:
 

You’d probably also want to do some formatting on the dateTime control itself, but that should get you started.

Translate

Forum|alt.badge.img+2

Hey, thanks, ​@brent_read! I don’t have much experience with CSS at all, so really appreciate you giving me this starting point. I’ve got a bunch of other adjustments to make elsewhere in my flow and will try this out once those are stable.

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Answer
  • September 27, 2026

Hi ​@Chris Wheeldon,

If you don’t want to use CSS, you could use a Text Short control and use a Regular expression to validate it.

This Regex will validate a 24-hour time HH:MM

^([01]\d|2[0-3]):[0-5]\d$



 

 

Translate

Forum|alt.badge.img+2

Ahhh, now that’s an interesting alternative ​@Simon Muntz.

I hadn’t played with text validation yet (something on the long list of things to learn) so this hadn’t occurred to me. After some mucking about with the regex pattern (regex is also on that list!), I was able to get it to validate with 12-hour time including AM/PM. Much tidier!

Thank-you!

Translate

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • September 28, 2026

Hi ​@Chris Wheeldon 

Glad you're making progress — that's a great learning moment with regex and text validation. It clicks quickly once you start applying it to real scenarios.
On the topic of getting up to speed with Nintex Workflow Cloud — it's worth noting that Nintex offers a Rapid Value Pack training program designed to accelerate the learning curve for developers in exactly your position. It covers core concepts and practical skills in a structured way, so you're not piecing it together through trial and error.
To access it, your best starting point is to reach out to your Nintex Account Manager — they can walk you through what's included and what's right for your situation.
That said, if you'd prefer to work with a Nintex partner, our team at Definiti is also accredited to deliver this training, so feel free to reach out to us directly if that's easier.
Happy to answer any questions here in the meantime — always good to see people digging into the platform! 

Translate