M
|
mmaner author 7/7/2015 |
I had already looked at both of those actually, but thanks for the info. When I try to move from span style formatting to style formatting I get no formatting at all. I'm thinking its a syntax issue. The same is true with the date format, I just dont understand how to combine the style and date formatting against the value. |
![]() |
HJB 7/7/2015 |
... for inspiration purposes ex http://www.asprunner.com/forums/topic/22924-compare-date-fields-on-the-fly/ |
![]() |
Admin 7/7/2015 |
In your last line of code instead of $value you need to use something like this: date("Y-m-d H:i:s",strtotime($value))
|
M
|
mmaner author 7/7/2015 |
In your last line of code instead of $value you need to use something like this: date("Y-m-d H:i:s",strtotime($value))
$value="<span style='background-color: " . $background . ";color: " . $color . "'>".date("m/d/Y H:i:s",strtotime($value))."</span>";
|
![]() |
HJB 7/7/2015 |
I was able to get the Date format to display correctly by using the following as the last line of the above quoted code... $value="<span style='background-color: " . $background . ";color: " . $color . "'>".date("m/d/Y H:i:s",strtotime($value))."</span>";
|
M
|
mmaner author 7/7/2015 |
Can you see the code discrepancies?
$value="<style='background-color: " . $background ."'>"$value;
|
![]() |
HJB 7/8/2015 |
http://xlinesoft.com/phprunner/docs/change_cell_background_color.htm |