8 years ago
3
Topic

Hi,

I set calendar as http://jamesmorrell.com/blog/seblod-datepicker-calendar. 

In the settings put the format (Brazil) dd-mm-yyyy but not record. When I put yyyy-mm-dd works. 

How to solve?

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
2
Level 1
http://dev.mysql.com/doc/refman/5.7/en/datetime.html

Mysql datetime needs to be in in the yyyy-mm-dd format, anything else won't save. 

What you need to do is alter just display format as described in the documentation

https://bootstrap-datepicker.readthedocs.io/en/latest/options.html#format

8 years ago
1
Level 2

Unsuccessfully.... help-me ?

Erro:

$('.datepicker').datepicker({ format: { toDisplay: 'yyyy-mm-dd', toValue: 'dd-mm-yyyy' } });

4229 Posts
Kadministrator
8 years ago
0
Level 3

Hi,

sorry, but we can only give you general directions, you need to do actual implementations yourself.

Get a Book for SEBLOD