in reply to Question on date formatting

Most databases offer you a function to retrieve a date in a specific format, independently of locale settings.

Instead of trying to parse all possible output formats, use that function instead.

(IIRC Oracle lets you control the format with an environment variable - that's another direction worth exploring. But it's all futile speculation unless you tell us what DB system you're using).

Replies are listed 'Best First'.
Re^2: Question on date formatting
by KarthikK (Sexton) on Jun 19, 2008 at 10:35 UTC
    Thx for ure feedback. I am using API's from IBM Rational ClearQuest and cannot have SQL tricks in my case