Answers.Body: <p>This is not currently available in CiviCRM to have time range custom field. The alternate solution would be to create two date time field To and From and using buildForm hook and PageRun hook and/or JS hide the date field on forms and view.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-11T09:12:59.703Z
Answers.LastActivityDate: 2018-10-11T09:12:59.703Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>A more basic solution would be two integer, number or text 'select' fields ie with 8.00, 8.30, 9.00 etc</p>
  
  <p>but it depends whether the data is based on hour, half hour, or by the minute</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-12T00:29:48.290Z
Answers.Text: Hour is fine, but i need the fields inline select  side by side horizintally,  so could use float left  css for it
Answers.UserDisplayName: Bruno  Vincent
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-12T06:08:28.477Z
Answers.Text: or if drupal do as webform and use layout component
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-11T19:03:15.797Z
Answers.LastActivityDate: 2018-10-11T19:03:15.797Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I want to record the working hours from my prospects, so I need a flexible to and from field, like:</p>
  
  <p>9-5, 8-5 etc...</p>
  
  <p>I could do drop down selects, but I would rather have it custom, so a double drop down selection field, a little like the date field but only for hours , no date, month etc...</p>
  
Tags: <forms><fields><dates>
Title: Is there a way to have a "from and to" field , need this for business hours "to and from"
ThreadText: # Is there a way to have a "from and to" field , need this for business hours "to and from"
  
  (Asked by: username_0 on 2018-10-11)
  
  I want to record the working hours from my prospects, so I need a flexible to and from field, like:
  
  9-5, 8-5 etc...
  
  I could do drop down selects, but I would rather have it custom, so a double drop down selection field, a little like the date field but only for hours , no date, month etc...
  
  **Tags:** forms, fields, dates
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-10-11. Score: 2 | Accepted answer
  
  This is not currently available in CiviCRM to have time range custom field. The alternate solution would be to create two date time field To and From and using buildForm hook and PageRun hook and/or JS hide the date field on forms and view.
  
  HTH
  
  username_1
  
  
  ---
  
  ### Answer by username_2 on 2018-10-11. Score: 2
  
  A more basic solution would be two integer, number or text 'select' fields ie with 8.00, 8.30, 9.00 etc
  
  but it depends whether the data is based on hour, half hour, or by the minute
  
  > **Comments:**
  > **username_0**: Hour is fine, but i need the fields inline select  side by side horizintally,  so could use float left  css for it  
  > **username_2**: or if drupal do as webform and use layout component  
  
  ---
  
  