Phire Posted September 21, 2002 Share Posted September 21, 2002 I was wondering how hard it would be to place this <?php echo strftime(DATE_FORMAT_LONG); ?> into a box heading or possibly a text field, to incorporate the date automatically when I type the latest news? I tried just slapping it inline but in that case the field returns no value, i.e. nothing, blank space. Link to comment Share on other sites More sharing options...
JH Posted October 4, 2002 Share Posted October 4, 2002 Phire: try this to solve your problem. Make sure to set your particular locale and punctuate the output the way you like it. Also, rearrange the %vars for your particular needs. <?php setlocale (LC_TIME, "US"); print strftime ("%A, %B %d, %Y");?> JH Link to comment Share on other sites More sharing options...
JH Posted October 4, 2002 Share Posted October 4, 2002 Phire: You can use echo instead of print if you like. JH Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.