Jquery UI Datepicker use 2 dateformats - jquery-ui

I have a client that need next:
Use a datepicker widget, that supports two different dateformats?
Ex:
dd/mm/yy and dd-mm-yy
Is this possible with jQuery UI? Maybe with another plugin?
Thanks for the help

Related

How to add datepicker in MVC without jQuery

How to add datepicker in MVC without jQuery
There's no built in Datepicker in MVC. The nearest to a built-in datepicker would be the HTML 5 datetime input type
<input type="datetime " value="" />
which may show a datepicker in certain browsers, but this may not be supported across all your target browsers and is limited to how you can style it.
In light of this, you may want to look at a JavaScript based datepicker.
I don't think you can no, although when running in Chrome it will allow you to pick dates using a datepicker

disable previous dates in jqerymobile dates

disable previous dates in jquerymobile dates and I need to disable dates e.g. weekends and holidays on a jQueryMobile date picker similar to the jQuery. i want disable previous dates in jquerymobile.js please give the suggestion
Assuming that you are trying this date picker..JQM Datepicker. You can find the options in that page with this link..JQM Datepicker options. I haven't tried this but JQM says this third party plugin supports their own Jquery datepicker options.

How to configure the jQuery UI Datepicker to use a localized calendar?

I'm wondering if this is possible and if yes, how would I go about doing it? I'm trying to make the widget use a Jalali(Persian) Calender.
jQuery UI Datepicker localization
In general, to add localization to jQuery UI Datepicker you need to include a specific localization file immediately after including the Datepicker's script. For example, to set a French localization, you'd do this:
[...include jQuery and jQuery UI...]
<script type="text/javascript" src="jquery.ui.datepicker-fr.js"></script>
The localization files are included as part of the the standard jQuery UI download, in a separate directory (development-bundle/ui/i18n). For more on this, see the Datepicker API documentation (under "Localization").
Current status: Farsi in, Jalali out
Currently, jQuery UI download package doesn't seem to include a Jalali localization file. For now, there seems to be only a regular (Georgian) calendar translated into Farsi (jquery.ui.datepicker-fr.js).
Solution 1 - custom localization file
If you prefer to stick with jQuery UI's datepicker, you can create a custom localization file, based on the format of existing localization files. If you're familiar with the calendar in question, it shouldn't be difficult.
Solution 2 - use a different plugin
Consider using the jQuery Calendars plugin instead. It already includes most common world calendars in several languages and formats, so generating a Jalali or any other foreign calendar for that matter is done by the flick of a setting.
Might be too late, but since I stumbled on it, here is a demo someone has been kind enough to put up. All credits to unknown author
http://jquery-ui.googlecode.com/svn/tags/1.6rc5/demos/datepicker/localization.html

jQuery and jQuery UI on the same page

I am working on a project that another developer started. They used jQuery UI for some of the effects, and I am not exactly sure how I can use jQuery for my AJAX functions and still have the jQuery UI stuff functional.
Any Suggestions?
Thanks in Advance.
jQuery UI is dependent on jQuery, so assuming the jQuery UI widgets/effects are actually working, you can just go ahead and start using the ajax API.
Like the others have said, jQuery UI uses jQuery and thus jQuery is a dependency. What that also means though, is that it needs to be included AFTER jQuery for jQuery UI to work.
jQueryUI uses jQuery. In other words, jQuery is a dependency for jQueryUI. You will need to include both javascript files

JQuery UI DatePicker - Can it handle multiple dates?

I need to display an inline calendar that allows one to click 1 or more dates for selection. Can the JQuery UI datepicker 1.7.1 do this?
At the moment, Datepicker in jQuery UI doesn't allow multiple dates selection.
I created an extension to that plugin that makes it possible: MultiDatesPicker

Resources