Announcement

Collapse
No announcement yet.

...include the month and year in digit form?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ...include the month and year in digit form?

    How can I insert a digit representing the current month, and another representing the current year, into my forum style? I would like to do a simple graphic-based calendar, using these two numbers.

    For example, for January I want to include 1 or 01 in my html, and year 2006 would be just 2006.

    Any idea?

  • #2
    All date formats here:

    http://uk2.php.net/manual/en/function.date.php

    Bob

    Comment


    • #3
      I'm being a bit dense today... how do I get these into the actual html?

      I realise this is what I need
      "echo date("m.d.y");"

      ...but I need to make a custom variable which calls this. I've done it in the past but I can't remember.

      Comment


      • #4
        Oh, crud, the php_include template has gone. Is there any simple way to get the date included on my page, or am I going to have to write some sort of hook?

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X