i am working on an issue with a ionic date-time date picker.
When i open the datepicker, it opens with a view of may 2021.
when i scroll along to the current date, i see a circle around today's date. so it does seem to be selecting todays date correctly.
i have tried setting the value of today, and this works. however, it also selects the current date.
This is a problem.
I need the current month to open in the view, but for the datepicker to not have anything selected. I have read through the documentation and there doesn't seem to be an option for giving a initial view.
As far as i know, working with a 'New date' to isostring() solution wouldn't work either, as it would select the current date, and i can't leave parts of that iso string blank.
anyone have any ideas for this specific problem? it would seem so straightforward for there to be a view selector.
I had to update "#ionic/angular-toolkit"
I understand that we can disable certain dates (Jquery UI datepicker. Disable array of Dates) by manually specifying each date in array however this seems like a messy solution to a problem.
Is there a simpler method of just providing a start and end date of a period in which dates should be disabled? i.e. 07/07/2020 to 07/08/2020 rather than specifying each date between these?
I would like to able to select all Wednesdays in a given month by clicking on the day in the calendar UI. For example to schedule a meeting that occurs on every Wednesday. I would like the user to be able to just click on a day name rather than clicking every specific date.
I was wondering if anyone is aware of a Javascript date picker library that already has this feature or is this something I will have to write myself?
I've looked at a few multidate pickers available out there (http://multidatespickr.sourceforge.net/ for example) and they all have a feature to select a RANGE or the entire week however it seems that none of them support selection based on a specific week day.
I am using this script for a Javascript Date and Time picker.
http://www.rainforestnet.com/datetimepicker.htm
After a few modifications I have gotten everything to work as I'd like it to minus the default time.
By default, if a time is not selected from the drop down menus initiating the onChange event, the time defaults to the current time. I need this to default to 12:00am. I Have looked through the code and have tried several changes but cannot get this to work the way I'd like. Any help would be greatly appreciated.
I'm having trouble finding an elegant way to allow for date/time input in an html form. I am thinking of having drop down menus for year, month, day, hour, minute, second, millisecond that are populated with valid entries only. I could do this by hard coding values for each drop down menu, but I'm thinking there must be a more elegant way to do this, perhaps with some already existing javascript library that I have not found yet. Any tips for getting this done?
edit: Second, and if possible, millisecond precision is needed for what I'm working on.
edit#2: After reading some of the comments, I have come to the realization that it is probably a bad idea to have drop down menus for the large range of values required by hours/minutes/seconds and especially milliseconds. I think will go with having the DatePicker prototype date chooser, along with a simple textfield for time input.
This can be done quite elegantly with a Jquery plug-in called Datepicker
There are many calendars which can do this, with both date and time :
Calendar Date Select
Control.DatePicker (based on PrototypeJS) my favourite, I made an enhanced version, with more features, I can share it
Dynarch calendar but I find it too heavy
and others
I think a very easy way to do this is by using PHP i.e. for making choosing a day and a month:
Use the select command for the form, then insert a PHP line to initiate a for loop. So for the days the loop would go from 1 -> 31 and for the month from 1 -> 12. So instead of hard coding it for all the days months etc, you can neatly fit it into one line of code with a small bit of PHP added.
You could expand on on this plugin since you want second/millisecond
http://www.jnathanson.com/index.cfm?page=jquery/clockpick/ClockPick