Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Date and Time Prompt

Date and Time Prompt

Date and Time Prompt

Is there a way to ask for date + time .
It should be a value prompt where the user is able to enter the value rather than select from a list of values from database. I have an attribute based on a DATE datatype column in Oracle. I want the user to enter date-time ranges.
Passthrough functions do not allow prompts as inputs. Any other way to do this?

RE: Date and Time Prompt

Used Applysimple(to_char(....,'YYYY/MM/DD HH:MM:SS')..)) and extracted the datetime into a text type. Created prompts for this text stuff and used them in a filter with a between operator. This works. My only concern is that with text prompt, what is the validation that we can provide?? At the most, text length. If there is any change in the format ...the query will not return the required info.
Any way to do more validation on text prompts, especially in this case of dat time ranges?

RE: Date and Time Prompt

probably not the most elegant way but a possible workaround...

- 2 date prompts
- 6 long value prompts
     - 2 of them with valid range 0-24
     - 4 of them with valid range 0-60

then you can use your applysimple method....

in web, you'll want to order the prompts so that statedate, starthour,startminute,startsecond come together....like I said, not elegant...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close