i want to have date and time in one field

Questionsi want to have date and time in one field
George asked 11 years ago

I want this format
$col["formatoptions"] = array("srcformat"='Y-m-d',"newformat"='Y-m-d H:i:s');
But it's not working.Any suggestions?

5 Answers
Abu Ghufran answered 11 years ago

Hello, Here is the config.

# to make it date time
$col["formatter"] = "datetime";
$col["formatoptions"] = array("srcformat"=>'Y-m-d H:i:s',"newformat"=>'Y-m-d H:i A',"opts" => array("timeOnly" => false, "timeFormat"=>"hh:mm tt"));
$cols[] = $col;

Demo is online.
http://www.phpgrid.org/demo/demos/integrations/timepicker.php

George answered 11 years ago

Is this in licensed version only?

Abu Ghufran answered 11 years ago

Yes, thats right, Its currently in licensed pack.
I'll be updating free version soon.

George answered 11 years ago

Could you send it to my mail when it is ready because i have a project to get it done?
Thanks in advance.

Abu Ghufran answered 11 years ago

Follow us on G+ or twitter. Notification is send on these channels on each update.


http://plus.google.com/111082462125061889695?prsrc=3

Your Answer

13 + 1 =

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?