Date Input - Forum

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

Date Input

Page 1 of 2Next

Hello,
In the "Date Input" element, is it possible to have the arrows up/down not visible ?
Regards,

I found this solution, to put in "project", "properties", "styles" :

::-webkit-inner-spin-button { display: none; }

An other question...

The result in my variable for a selected date : 07/09/2019  is

"2019-09-06T22:00:00.000Z"
Any idea ?

Hi @cdy44-2,
Thats the way JavaScript manages dates.
Please take a look at the attached plugin and sample app.
Regards.

Uploaded files:
  • You need to login to have access to uploads.
paeon and CDY@44 have reacted to this post.
paeonCDY@44

Thank you Luis,

@luishp

Hola Luis,

 

Tengo el mismo problema con dateInput.

Elijo la fecha 14/10/2019

Y el contenido de la variable almacenada es:

2019-10-13T22:00:00.000Z

He intentado ejecutar tus ejemplos y me dan error: comando desconocido.

Mi intención es comparar la fecha introducida por el usuario con la fecha actual.

Saludos,

Roger Rey

 

@rrey, fíjate que mi ejemplo viene junto con un plugin que tienes que instalar primero.
Saludos.

Hi Luis,

Possible to have date-picker2 in french ?
Regards,

Hi @cdy44-2

Yes it's possible to add more languages.
I just need some help from the community to translate these strings:

Datepicker.language['en'] = {
 days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
 daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
 daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
 months: ['January','February','March','April','May','June', 'July','August','September','October','November','December'],
 monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
 today: 'Today',
 clear: 'Clear',
 dateFormat: format,
 firstDay: 0
};

We can add as many languages as we want, just publish here the language translation you are interested in and I will add it to the list. Thank you!

Vadim and CDY@44 have reacted to this post.
VadimCDY@44
Datepicker.language['fr'] = {
 days: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'],
 daysShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
 daysMin: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'],
 months: ['Janvier','Fevrier','Mars','Avril','Mai','Juin', 'Juillet','Aout','Septembre','Octobre','Novembre','Décembre'],
 monthsShort: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jun', 'Jui', 'Aou', 'Sep', 'Oct', 'Nov', 'Dec'],
 today: 'Aujourd'hui',
 clear: 'Effacer',
 dateFormat: format,
 firstDay: 0
};

 

@cdy44-2, please take a look here:
https://visualneo.com/forum/topic/neodatepicker-plugin

Thanks for the translation to french!

Hi Luis,
My pleasure !
Regards,
Denis

Hola @luishp

Perdona por mi ignorancia. Quiero probar el programa  date-sample.neoapp    pero no sé cómo instalar

el pluguin date-picker2.nabp .

Saludos,

Roger Rey

 

Hola @rrey, no te preocupes, es muy sencillo.

Se hace desde el menú Options > Add/Remove plugins...
Verás que se abre una ventana que te permite instalar y desinstalar plugins fácilmente.

VisualNEO Web plugin manager

Los archivos con extensión .nabp son plugins de VisualNEO Web.
El código correspondiente a un determinado plugin solo se añade a tu App si utilizas algún comando de ese plugin.
Por cierto, fíjate que el plugin date-picker2.nabp ha sido sustituido por este otro, más moderno, con más opciones y más fácil de utilizar:

https://visualneo.com/forum/topic/neodatepicker-plugin

Muchas gracias @luishp. Funciona perfectamente.

hi Luishp,

Datepicker.language['fa'] = {
 days: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
 daysShort: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج شنبه', 'جمعه', 'شنبه'],
 daysMin: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
 months: ['حمل','ثور','جوزا','سرطان','اسد','سنبله', 'میزان','عقرب','قوس','جدی','دلو','حوت'],
 monthsShort: ['حمل','ثور','جوزا','سرطان','اسد','سنبله', 'میزان','عقرب','قوس','جدی','دلو','حوت'],
 today: 'امروز',
 clear: 'پاک',
 dateFormat: format,
 firstDay: 6
};

 

hi asmat

The months mentioned are Arabic and not Persian

regards

@asmat I have added your code for "fa" language.
Please check it's working fine
@farhad2008 should it be "ar" (Arabic) instead of "fa" (Persian)?
What's the correct code for "fa" (Persian) then?
Thank you both of you!

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

hi luishp

This is the Persian calendar list The name of the day and month shown

Datepicker.language['fa'] = {
days: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
daysShort: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج شنبه', 'جمعه', 'شنبه'],
daysMin: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
months: ['بهمن','اسفند','فروردین','اردیبهشت','خرداد','تیر', 'مرداد','شهریور','مهر','آبان','آذر','دی'],
monthsShort: ['بهمن','اسفند','فروردین','اردیبهشت','خرداد','تیر', 'مرداد','شهریور','مهر','آبان','آذر','دی'],
today: 'امروز',
clear: 'پاک',
dateFormat: format,
firstDay: 6
};

 

Hi @luishp thank you so much, it is  great,

I tested the both commands in Mozilla and Android, the below command works perfectly:

neoDatePickerPlus "TextInput1" " dd-mm-yyyy" "fa" true "years" "days" "top left" true [x]

but this one does not work.(maybe something  entered wrong )

neoDatePicker "TextInput1" "dd" "fa" true "[x]"

hi @farhoad2008,

I think for Iranic persian use this symbol "fa-ir"

@Luishp i have one more note:

As you know some Asian countries use "Solar Hijri " years instead AD years in the calender. and current year in Solar Hijri is 1398.

I think if it possible then please make it for persain, such that prime preview for years be like below:

 

 

Uploaded files:
  • You need to login to have access to uploads.
Page 1 of 2Next