# Dateinput x Dateinput2

**URL:** <https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, Natural-for-AJAX\
**Created:** [September 19, 2017, 1:40pm UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486 "2017-09-19T13:40:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_Oliveira](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/alexandre_oliveira/32/1017_2.png) [@Alexandre\_Oliveira](https://techcommunity.softwareag.com/u/Alexandre_Oliveira)\
**Post date:** [September 19, 2017, 1:40pm UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/1 "2017-09-19T13:40:41Z")

</div>

Hi,

I would like to reproduce with the DATEINPUT2 component the same that DATEINPUT component. I already tried but I can’t display DATE and TIME together, only date appears time don’t.

Best regards,

Alexandre Oliveira  
Software AG Brazil  
 ![dateinput2.png](https://global.discourse-cdn.com/techcommunity/original/2X/7/7086821fcc6296fd78852706497229b4faed0314.png)

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [September 19, 2017, 10:06pm UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/2 "2017-09-19T22:06:20Z")

</div>

Hi Alexandre,

no, sorry, the DATEINPUT2 does not support time.  
It is specialized for calendar functionality. It has nice features like showing several months, instead of just one.

Do you need time and date in 1 control, or would using DATEINPUT2 and render the time in a different control be an option?

Best regards,  
Christine

---

<div class="post-metadata">

**Author:** ![Alexandre\_Oliveira](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/alexandre_oliveira/32/1017_2.png) [@Alexandre\_Oliveira](https://techcommunity.softwareag.com/u/Alexandre_Oliveira)\
**Post date:** [September 19, 2017, 10:30pm UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/3 "2017-09-19T22:30:03Z")

</div>

Hi Christine,

I understood that it worked with TIME because when I put the xs:dateTime datatype a variable type (T) is generated.

I could use a separate component. Is there any? I’m thinking of creating a component using JQuery:

> **[Spinner | jQuery UI](https://jqueryui.com/spinner/#time)**
>
> jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form...

My client uses DATEINPUT with DATE and TIME, but is having trouble with blocked popups.

Best regards,  
Alexandre

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [September 20, 2017, 11:05am UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/4 "2017-09-20T11:05:10Z")

</div>

Hi Alexandre,

the FIELD control in NJX also has some “spinrange” functionality. See attached screenshot.  
The JQuery spinner looks a little bit better. If there are requests for improving the NJX time support, we are considering to add this or some similar control to the NJX control set.  
The DATEINPUT2 is implemented with JQuery, so the SPINNER control is using the same javascipt libraries. Adding a custom control should be straightforward because you already have the right javascript libraries in your page.

Best Regards,  
Christine  
 ![fieldcontrol_spin.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/5/51c38b419f6ca3818a56af6616709c323e182fd3.jpeg)

---

<div class="post-metadata">

**Author:** ![Alexandre\_Oliveira](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/alexandre_oliveira/32/1017_2.png) [@Alexandre\_Oliveira](https://techcommunity.softwareag.com/u/Alexandre_Oliveira)\
**Post date:** [September 20, 2017, 5:46pm UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/5 "2017-09-20T17:46:50Z")

</div>

Thanks Christine,

Problem solved!

I’ve never used this functionality, but it’s an option. I think it would be interesting to include a component that controls the time. Turning to DATEINPUT2, I think it would be interesting to exclude the datatype xs: datetime (this format generates variable type TIME).

Best Regards,

Alexandre

---

<div class="post-metadata">

**Author:** ![Christine\_Zimmermann](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christine\_Zimmermann](https://techcommunity.softwareag.com/u/Christine_Zimmermann)\
**Post date:** [September 21, 2017, 7:25am UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/6 "2017-09-21T07:25:22Z")

</div>

Hi Alexandre,

thanks for your feedback.

Best Regards,  
Christine

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:39pm UTC](https://techcommunity.softwareag.com/t/dateinput-x-dateinput2/196486/7 "2021-04-02T15:39:19Z")

</div>


