date formatting

Discussion in 'ASP General' started by dave, Jan 21, 2004.

  1. dave

    dave Guest

    how can I format date that always return in fixed width.

    for example..
    if the date is 1st jan, 2003..

    it should return 01/01/2003 not 1/1/2003

    i need date format always in 10 characters...

    thanx in advance..
    dave
     
    dave, Jan 21, 2004
    #1
    1. Advertising

  2. Adapt the code here.
    http://www.aspfaq.com/2313

    --
    Aaron Bertrand
    SQL Server MVP
    http://www.aspfaq.com/




    "dave" <> wrote in message
    news:182c01c3dfb2$e73419f0$...
    > how can I format date that always return in fixed width.
    >
    > for example..
    > if the date is 1st jan, 2003..
    >
    > it should return 01/01/2003 not 1/1/2003
    >
    > i need date format always in 10 characters...
    >
    > thanx in advance..
    > dave
    >
     
    Aaron Bertrand - MVP, Jan 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    608
    Matthew Speed
    Nov 8, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,278
    Michael Borgwardt
    May 30, 2004
  3. Matt
    Replies:
    2
    Views:
    519
    Pete Becker
    Nov 8, 2003
  4. Matt
    Replies:
    3
    Views:
    724
    Richard Heathfield
    Nov 8, 2003
  5. Matt
    Replies:
    11
    Views:
    408
    Aaron Bertrand [MVP]
    Nov 8, 2003
Loading...

Share This Page