Forums

Mootols Datepicker X Monkey Phisics

rslyra 15 Dec, 2012
I am having a few problems with date picker.

A few things work with Mootols Datepicker, and some other works with Monkey Phisics.

None type is good for every thing.

Monkey Phisics
what don't works: Moo datepicker style
minDate: new Date(), maxDate: new Date()
what works: startView: 'year', format: '\M \Y', months: ['Janeiro', 'Fevereiro',... ],

Mootols Datepicker
what don't works: format: '\M \Y', months: ['Janeiro', 'Fevereiro',... ],
what works: Moo datepicker style
startView: 'year',


The bigest problem is Moo DatePicker Style and date format.
GreyHead 15 Dec, 2012
Hi rslyra,

Have you checked the DatePicker threads here in the Forums? See here for example.

The MooTools DatePicker is a fork from the MonkeyPhysics DatePicker that has been updated to work with more recent releases of MooTools. If you are using Joomla! 1.6 or later then I strongly recommend that you use the MooTools DatePicker.

Mootols Datepicker what don't works:
format: '\M \Y', months: ['Janeiro', 'Fevereiro',... ],

The format strings for the MooTools DatePicker are different - see the example in the Custom MooTools DatePicker action %d-%m-%Y %H:%M:%S and you usually don't need to set months specifically as the DatePicker will use the current Locale. Both pt-BR and pt-PT are available (more info in the post I linked to above).

Bob
rslyra 15 Dec, 2012
As usual: quick , clear and efficient.

Thanks
rslyra 18 Dec, 2012
as usual, this is not the end, yet.

About format:

this
format: '%d %m %Y'; months: ['Janeiro', 'Fevereiro', 'Marco', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro']

dont work


this:
format: '%d-%m-%Y'

works, but don't save the date.
GreyHead 18 Dec, 2012
Hi rslyra,

This
format: '%d %m %Y'; months: . . .
needs to be
format: '%d %m %Y', months: . . .

I've no idea why it doesn't save . . . there's not enough information here to try guessing.

Bob
rslyra 18 Dec, 2012
I hate details.
This topic is locked and no more replies can be posted.