is this related to the mysql i mentioned earlier:
I tjhink I am close now. I am working on the following - which half works:
$value = empty($value) ? date("m/d/Y g:ia", strtotime(now)) : date("m/d/Y g:ia", strtotime($value)) ;
<input name="
<?php echo $name; ?>
" type="text"[/code]" id="
<?php echo $css_id; ?>
" value="
<?php echo $value; ?>
" />
the "now" time works but the 2nd date is changing to a NOv 30- 0001 date...any feedback on that? I am not sure if it's related to the above issue or it's with the date format. But since the "now" once is working, I am thinking it's a dating format issue...right?
EDIT ** I see that this is being returned b/c of the mysql 0 value...
i';m sorry but this is a little confusing...
can you give me any tips for setting this up?
the value comes in as 06/25/2011 6pm for example...set up with a datepicker...
so then I have to convert that before the form is saved to a mysql value? should I use a hidden field? and then convert it back. I know php a little bit and mysql hardly at all at this point so I would rather user php to format this...
any direction is appreciated
thanks again