Date format of MM/DD

Posted on 2008-11-05
Last Modified: 2012-05-05
I have date fields that are all printing MM/DD/YYYY  

How can I change that to print only MM/DD
Question by:pinkstonm
    LVL 48

    Accepted Solution

    try use a customize function:


    function toMMDD(v)
       if isdate(v) then
             toMMDD = right("0" & month(v),2) & "/" & right("0" & day(v),2)
      end if
    end function



    response.write toMMDD(yourdateValue)
    LVL 48

    Expert Comment

    by:Ryan Chong
    or if you date value is from database, you can format it in your Select SQL statement instead.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now