Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a date module


Phire

Recommended Posts

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

  • 2 weeks later...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...