It's really not an "ASP" problem. The same issues come up in any programming
environment where the person entering the dates may use a different format
than the system storing the dates. We finally gave up on manually entered
text dates in our system and now use a popup date calendar that always sends
the dates to the web server as "yyyymmdd hh:mm:ss",
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"PW" <pwa@NObigSPAMpond.net.au> wrote in message
news:eIM2XVBfEHA.384@TK2MSFTNGP10.phx.gbl...[color=blue]
>
> <rant>
>
> Sorry guys, but I just have to whinge. Dates in ASP are a total pain in[/color]
the[color=blue]
> butt! I seem to get caught out so many times. I realise its my own[/color]
fault,[color=blue]
> but going from the posts in this newsgroup and others, I'm not the only[/color]
one.[color=blue]
> Its just a poorly addressed issue within ASP. So for all your poor[/color]
buggers[color=blue]
> out there that are having problems, particularly with european date[/color]
formats,[color=blue]
> here is my solution.
>
> I have the user enter their date in european format ("31-12-2004") and[/color]
then[color=blue]
> handle it this way ...
>
> myDate = Request.QueryString("txtDate")
> myArray = Split(myDate, "-")
> myDD = myArray(0)
> myMM = myArray(1)
> myYYYY = myArray(2)
> myISOdate = myYYYY & "-" & myMM & "-" & myDD
>
> I find that ISO formatted dates typically go into the database of choice
> pretty readily.
>
> Hope this helps someone.
>
> Cheers,
> PW
>
> </rant>
>
>[/color]