DateInput and TimeInput variable content - Forum

Forum Navigation
You need to log in to create posts and topics.

DateInput and TimeInput variable content

Hi @luis,
See the picture below. There is a TimeInput and a DateInput that I would like to use with neoAddToCalendar.
But the content of variables are very strange (see below)
Can we manage that to have [time] = yyyy/mm/dd or dd/mm/yyyy   and [hour] = HH:MM ?

 

Uploaded files:
  • You need to login to have access to uploads.

For the Date Input I know that I can use DatePickerPlus ( maybe I am wrong, but it seems that 'auto close' of DatePicker doesn't work, ok with DatePickerPlus  )
But how to do the same thing with Time Input ?

But the content of variables are very strange (see below)

@cdy44-2 That's the way HTML inputs work. And that's the reason you have these commands to get the correct information easily:

DateInputGetYear, DateInputGetMonth, DateInputGetDay, TimeInputGetHour, TimeInputGetMinute

Also note how I have used neoInputMask in a common TextInput object within the addToCalendar plugin demo:

neoInputMask "TextInputDate1" "0000-00-00"
neoInputMask "TextInputDate2" "0000-00-00"
neoInputMask "TextInputHour1" "00:00"
neoInputMask "TextInputHour2" "00:00"

Let me know if you have any issues.

Regards.

Hi @luishp,
Thank you.
I have just try TimeInputGetHour ( I think you forget to mention it in the help file in "Time/Date ) and it works fine.
Best regards,

luishp has reacted to this post.
luishp