Formatting and sorting date

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Formatting and sorting date

    I have an asp page which displays records from an access table.
    One of the fields in the table is a date field.
    The regional settings on the webserver have set the date as mm/dd/yyyy which
    I cannot change. However I need to sort the records in order of date in
    dd/mm/yyyy format. the date field should also be displayed in dd/mm/yyyy
    format. However the SQL string which says sorting by date field actually
    sorts it in the order of month instead of date. it subsequently prints the
    date in dd/mm/yyyy format but in wrong order.
    Please help


    S N Guest

  2. Similar Questions and Discussions

    1. Sorting a date column
      Sekhar, I think you have run across a known bug where the order by ignores the table prefix POProjects. and orders by the result column called...
    2. CFPOP sorting by date
      I'm trying to sort emails off my email server for a basic web interface, but am having problems sorting the messages by date. I am using a query...
    3. date sorting module
      Hello I just came from cpan, after doing some searches and before I get a module, wanted to ask if any one out there knows of a module that takes...
    4. formatting date
      On 30/7/03 2:18 PM, in article bg7guu$b7j$1@forums.macromedia.com, "JemJam" <webforumsuser@macromedia.com> wrote: The systemDate object will...
    5. Grouping and sorting by date
      If you convert your date without the time in datetime format, sql will take it and put 00:00:00 as the time everywhere. That will make grouping...
  3. #2

    Default Re: Formatting and sorting date

    [url]http://aspfaq.com/show.asp?id=2260[/url]

    [url]http://aspfaq.com/show.asp?id=2218[/url]

    --

    Regards

    Steven Burn
    Ur I.T. Mate Group
    [url]www.it-mate.co.uk[/url]

    Keeping it FREE!

    Personal favourites

    WebGrid - [url]www.webgrid.co.uk[/url]
    Freeware Arena - [url]www.freewarearena.com[/url]
    Freeware Home - [url]www.freewarehome.com[/url]
    Freeware Outpost -
    [url]http://free.hostdepartment.com/f/freewareoutpost/index2.html[/url]
    ZeroPlus2 - [url]http://zp2.it-mate.co.uk[/url]
    Fort Freeware - [url]http://freeware.quantum.2ya.com/[/url]
    Pricelessware - [url]http://www.pricelessware.org[/url]
    El-Mambo - [url]http://www.el-mambo.net/[/url]
    Practically Nerded - [url]http://mvps.org/PracticallyNerded/[/url]
    Bugs, Glitches n stuff - [url]http://mvps.org/inetexplorer/Darnit.htm[/url]
    Calendar of Updates - [url]http://www.dozleng.com/updates/index.php?&act=calendar[/url]
    Seniority - [url]http://www.seniority.co.uk[/url]
    Remembering Dunblane - [url]http://www.dunblane.braveheart.com/[/url]
    Rising Free - [url]http://www.echoecho.com/[/url]


    "S N" <uandme72@yahoo.com> wrote in message
    news:eU6K4h5LEHA.644@tk2msftngp13.phx.gbl...
    > I have an asp page which displays records from an access table.
    > One of the fields in the table is a date field.
    > The regional settings on the webserver have set the date as mm/dd/yyyy
    which
    > I cannot change. However I need to sort the records in order of date in
    > dd/mm/yyyy format. the date field should also be displayed in dd/mm/yyyy
    > format. However the SQL string which says sorting by date field actually
    > sorts it in the order of month instead of date. it subsequently prints the
    > date in dd/mm/yyyy format but in wrong order.
    > Please help
    >
    >

    Steven Burn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139