Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9159815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:35:08+00:00 2026-06-17T13:35:08+00:00

I want to use one parameter for date and another one for time in

  • 0

I want to use one parameter for date and another one for time in my reports as shown below.
Start Time [16/01/2012][12.00 am]

Can anyone help me regarding that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:35:09+00:00Added an answer on June 17, 2026 at 1:35 pm

    Sure it is a multiple step process:

    1. Set up a variable of TEXT as ‘DATE’ as the variable value and prompt
    2. Set it’s ‘Default Values’ in the left pane to be ‘1/16/2012’
    3. Set up a variable of TEXT as ‘TIME’ as the variable value and prompt
    4. Set it’s ‘Default Values’ in the left pane to be ’00:00′
    5. Set up a dataset, ‘AvailableDateTime’ to combine the two into a legitimate datetime field:

      SELECT        CAST(@Date + ' ' + @Time AS DateTime) AS Datetime
      
    6. Set up a third variable of DATETIME to be ‘DATETIME’ as the variable value and prompt.

    7. Set up this variable to use ‘AVAILABLE VALUES’ on the left pane of properties to be ‘Get values from a query’. Use the dataset from step 5.

    You now have set up a separate field for data and time.

    Further consideration to avoid user input error. You may wish to tie the first variables to be selectable ONLY FROM values you set in available values or from a query. The problem being if a user fat fingers the date or time it will not run as the system is only trying to combine two strings and make a datetime out of it. You may wish to list values directly from a query from the getgo.

    EDIT FOR CHANGING FIRST TWO VARIABLES:

    1. You may set the first variable as datetime which gives the end user a calendar.
    2. You can set a second dataset up to get available times for an end user:

      declare @time table ( tm int)
      
      declare @cursor int = 0
      
      while @cursor <= 23
      Begin
          insert into @time values (@cursor)
      
          set @cursor += 1
      End
      
      select cast(CAST(tm as varchar) + ':00' as time) as HourOfTheDay
      from @time
      
    3. Setting your second variable to get values from a query that is made in step 2 directly above.

    You should now be able to put the values together as above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use NSString from one UIView in another UIView . There are
I want to use the values of JTextFields from one class in another class
I have a stored procedure with a username parameter. I want to use one
I want to use one program as a shared library for an other program.
We are two students who want to use one-class svm for dectection of summary
I have two User Controls already created now I want to use one as
string one = find; combobox1.text = one; I want to use one i.e string
I have a few pages and want that they use one style. See in
I want to use many bars like this one in my app (i don't
I want to use the Hibernate3 maven plugin in one of my projects. But,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.