Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Current Month using strftime?

    I'm wanting to use something like:

    if ((sprintf(strftime('%B'))) = "December") {
    --do this --
    }
    in modules/new_products.php to determine the current month.

    I've tried it every way I can think, but nothing so far has worked.

    Any ideas?
    ZC 1.3.8a on Linux with lots o' mods

  2. #2
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Current Month using strftime?

    This date info link should help.

    Code:
    if (date("F") == "December") {
    echo "Merry Christmas";
    }
    Skip
    • 446F63746F722057686F •

 

 

Similar Threads

  1. How Do I Know if The USPS Module I am Using Is Current?
    By Rick5150 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 2 Apr 2011, 06:32 PM
  2. Selecting which products are new for the current month
    By jeanmichel in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 27 Mar 2011, 11:41 PM
  3. remove New Products For "Current Month"
    By Miran in forum Basic Configuration
    Replies: 10
    Last Post: 28 May 2009, 09:44 PM
  4. Upcoming in 2 months shows in current month new products why and how can I remove
    By nwironsales in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Oct 2006, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg