A quick one

Results 1 to 4 of 4

Thread: A quick one

  1. #1
    Join Date
    Dec 1969
    Posts
    569

    Default A quick one

    I&#039ve been putting the date at the bottom of a page, in International English format, as "3/9/99", but now have to change this to "3 September 1999". Any quick way of doing this?<BR>Cheers, Brian.

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: A quick one

    You can use a nifty customizable date formatting procedure, which is available on 4Guys.<BR><BR>http://www.4guysfromrolla.com/webtech/112098-2.shtml<BR><BR>Happy Programming!

  3. #3
    cristie Guest

    Default RE: A quick one

    Hi,<BR>I tried using the function, but i am not sure as to what the template for the date means in his function??<BR>help!!<BR>Thanks,

  4. #4
    Join Date
    Dec 1969
    Posts
    569

    Default What the template means...

    Firstly, thanks to Dan & Scott; that works perfectly.<BR>Christie: I just included the DanDate.inc file and referenced to embed my date in the HTML. I wanted the date to appear as "8 September 1999" in my HTML so this is what I placed in the ASP:<BR><BR>&#060;!--#INCLUDE FILE="DanDate.inc"--&#062;<BR>&#060;%<BR>dtmDate = Date()<BR>strFormattedDate = DanDate(dtmDate, "%d %B %Y")<BR>%&#062;<BR><BR>And in the HTML table I placed:<BR><BR>Date:&#060;%= strFormattedDate %&#062;<BR><BR><BR>The ""%d %B %Y" is the format I needed - you&#039ll find these elements explained at the beginning of Dan&#039s code:<BR><BR>http://www.4guysfromrolla.com/webtech/112098-2.shtml<BR><BR>Cheers Guys.


Posting Permissions

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