Problem with date format

QuestionsProblem with date format
Gopal Manikumar asked 4 years ago

I have this php code here:

$col = array();
$col[“title”] = “TRANSACTION DATE”;
$col[“name”] = “date”;
$col[“width”] = “50”;
$col[“editable”] = false;
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat”=>’mm/dd/yy’);
$cols[] = $col;

My date example: 12/30/2019

However, the end result is 01/01/1970. Could you please help me fix this issue? I’ll purchase the full version once I get everything working after testing, thanks!

2 Answers
Gopal answered 4 years ago

Nevermind, figured it out. There was a space in the database causing the error.

Abu Ghufran Staff answered 4 years ago

Thanks for updating.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

11 + 8 =

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?