Date and Timestamp problems

Hi all!
Timestamp, it comes up unformatted 20120604012457 instead of 2012-06-04 01:24:57
I have the field set as:
And I have tried this:
to no avail...
ALSO
Im trying to make a date + 90 days
so grabs the date data from one date field, and autocompletes another field with that date + 90 days to it...
I have read that you can simply do
Any ideas?!
Any help greatly appreciated.
Timestamp, it comes up unformatted 20120604012457 instead of 2012-06-04 01:24:57
I have the field set as:
- Code: Select all
`EditedLast` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
And I have tried this:
- Code: Select all
function EditedLast__pullValue(&$record, $element){
if ($record->val('EditedLast') == NULL){
return "";
} else {
return date('Y-m-d H:i:s', strtotime($record->strval('EditedLast')));
}
}
to no avail...
ALSO
Im trying to make a date + 90 days
so grabs the date data from one date field, and autocompletes another field with that date + 90 days to it...
I have read that you can simply do
- Code: Select all
date + 90
Any ideas?!
Any help greatly appreciated.