Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 05 21:41
    midoelhawy closed #158
  • Jul 17 2021 18:20
    mohaa8844 commented #158
  • Jul 17 2021 08:30
    mohaa8844 opened #166
  • Jul 17 2021 07:18
    mohaa8844 closed #165
  • Jul 17 2021 07:18
    mohaa8844 commented #165
  • Jul 17 2021 07:00
    mohaa8844 opened #165
  • Jun 14 2021 05:09
    rakeshkumar29594 opened #164
  • Jan 29 2021 17:43
    ssladkov opened #163
  • Aug 05 2020 17:51
    reynierpsalas commented #140
  • Aug 05 2020 16:39
    firstcloudconsulting commented #140
  • Aug 05 2020 16:38
    firstcloudconsulting commented #140
  • Aug 05 2020 15:18
    reynierpsalas commented #140
  • Aug 05 2020 15:18
    reynierpsalas commented #140
  • Jun 05 2020 12:26
    santhanakrishnanstark edited #162
  • Jun 05 2020 12:24
    santhanakrishnanstark opened #162
  • Jun 02 2020 08:13
    mikaelprag opened #161
  • Feb 24 2020 14:02
    sainitacn opened #160
  • Sep 17 2019 23:58
    finoshj opened #159
  • Jul 09 2019 20:20
    midoelhawy edited #158
  • Jul 09 2019 20:19
    midoelhawy opened #158
mkc110891
@mkc110891
how can I set min date to today?
Neha Kadam
@nehakadam
Hi
You can set today's date as minDate. You will have to format it in the dateFormat you are using
Neha Kadam
@nehakadam
For example, if you are using dateFormat: "dd-MM-yyyy" then you have to convert today's date in that format ("29-07-2015") and supply it to DateTimePicker.
Neha Kadam
@nehakadam

You can check solution for #28

You can use function below to format date -

function dateFormatter(tempDate)
{
return (tempDate.getDate() + "-" + (tempDate.getMonth() + 1) + "-" + tempDate.getFullYear());
}

pramod0586
@pramod0586
how can i datetime picker open using trigger?
pramod0586
@pramod0586
i want to display on load page instead of click field
Neha Kadam
@nehakadam
You can open DateTimePicker on page load using showDateTimePicker function.
You can find how to use showDateTimePicker in BasicExamples-CustomEvents.htm which is provided in DateTimePicker Demos.
AmitJadli1987
@AmitJadli1987
Hello, First of all Thank You for the great plugin, I am using this plugin for one of my website and on multiple text fields, But the problem is when one datetimepicker is open and i click on the another time picker text box there is no intreaction happens,, so i just want to destroy the another popup's and reinitialize the datetimepciker to the clicked textbox....
Chris Hinds
@hindsc52
hi there, thanks for the fantastic diatomite picker, what i would like to know is that is it possible then when a date is selected the inout field can show the actual day name instead of the say '23' it would display 'Friday'
Chris Hinds
@hindsc52
This message was deleted
Neha Kadam
@nehakadam
hi
Chris Hinds
@hindsc52
hi there :)
Neha Kadam
@nehakadam
There is no direct way for this. I will get back to you after some time.
Chris Hinds
@hindsc52
ok thanks for the info, thats a shame, i really liked this option
Neha Kadam
@nehakadam
Do you want this? - You are using "dd-MM-yyyy” Date format and you want date "23-10-2015" to be displayed in the input field as “Friday".
Chris Hinds
@hindsc52
@nehakadam yes that is exactly what i am after, well to display "Friday, 23 October"
Neha Kadam
@nehakadam
Yes. I am adding this feature. It is very useful.
Chris Hinds
@hindsc52
Fantastic, I don't suppose it will be ready today will it :P If not do you have any other recommendations for date pickers just like yours that include this
Neha Kadam
@nehakadam
It will get ready. As I will only add callback functions to add parse and format dates the way you want.
It has toDisplay and toValue.
Chris Hinds
@hindsc52
thats fantastic thank you, if its ready by today or Monday that even better. Thank you so much.
Neha Kadam
@nehakadam
Thanks for Feature Request
Chris Hinds
@hindsc52
No worries, will you be able to message here when the you updated the widget?
Neha Kadam
@nehakadam
Ok.
Neha Kadam
@nehakadam
You can use a new version of DateTimePicker.
See example - BasicExamples-CustomInputValue.htm.
Chris Hinds
@hindsc52
hi, thank you, should I do another 'nom install' to bring in the new version?
Neha Kadam
@nehakadam
You can download it from Github DateTimePicker Repo
or
in “package.json” file of your project modify devDependencies to include “datetimepicker": "*" and then use npm install.
Chris Hinds
@hindsc52
thanks again, do i have to do anything else? as the date is still formatted like 23-10-2015
Neha Kadam
@nehakadam
You download it from Github only, because it takes time to reflect changes on npm.
Chris Hinds
@hindsc52
right ok, ill try that
hmmm its formatting it like 23-10-2015
this is my input field: <input type="text" className="form-control input-size-md" name="formInput" data-field="date" placeholder="Thursday, 16 September"/>
and I have included the new function on the page too provided in your example file
Chris Hinds
@hindsc52
I'm using the cdn links to load the js and css would this be the problem?
Chris Hinds
@hindsc52
ok I have it working it now, however now when i try and enter in a time on the same page it replaces it with the newly formatted date :(
is it possible to show 'Friday' instead of 'Fri'?
Neha Kadam
@nehakadam
If you want to use it immediately, don't use CDN as it takes time to reflect changes to CDN.
Check whether new version 0.1.16 is retrieved using CDN.
Neha Kadam
@nehakadam
Initialize DateTimePicker for Date and Time separately as functions added for customization of input are applied to all text fields inside a div on which you initialize DateTimePicker.
Neha Kadam
@nehakadam
See example of separating code in BasicExamples-ElementsGroup.htm in demos folder of DateTimePicker repo.
Neha Kadam
@nehakadam
Please re-download DateTimePicker and use new version. Also see “BasicExamples-CustomInputValue.htm”, I added “time" and “datetime” fields in it.
Chris Hinds
@hindsc52
thnakyou so much, this definitely the diatomite picker i will be recommending to everyone, you support has been fantastic.
Chris Hinds
@hindsc52
Hi, something Im not sure may be possible, but is it possible to have a button next to an input field that simply sets the date to todays date in the new format like 'Monday 26 October'
Neha Kadam
@nehakadam
It is not possible with current setting, I will give you a solution by tomorrow.