Datepicker

QuestionsDatepicker
Gustavo Lazaro asked 8 years ago

There is no possibility of main use datepicker , but that respects the format d- m -Y and store them in format Y- m -d?

1 Answers
Abu Ghufran answered 8 years ago

This column settings should input date in d-m-Y format and save in Y-m-d.

$col = array();
$col["title"] = "Date";
$col["name"] = "invdate";
….
$col["formatter"] = "date";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d-m-Y', "opts" => array("changeYear" => true));

Your Answer

18 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?