• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Displaying date format

New Here ,
May 10, 2006 May 10, 2006

Copy link to clipboard

Copied

Hello all,

I am trying to output a date/time value using the following: #DateFormat(dt, "mm/dd/yyyy")#
The date is entered into the variable 'dt' in the following format: "Mon, 08 Nov 2004 22:33:37 +0000"
However, I ran into an odd problem, this seems to work well for Mon, Fri, Sat, Sun but when the date is one of 'Tue, Wed, Thu' (ie. 'Tue, 19 Oct 2004 19:15:22 +0000' ), I get this error message:

The value "Tue, 19 Oct 2004 19:15:22 +0000" could not be converted to a date.

Any idea why this is happening only for specific days of the week?

Thanks for any assistance.
Gord.
TOPICS
Advanced techniques

Views

221

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

I ran into this problem last year and found that UTC dates with Tue, Wed or Thu as days of the week will cause errors. The answer was to use the ParseDateTime() function.

Here's the thread.

-Paul

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 11, 2006 May 11, 2006

Copy link to clipboard

Copied

LATEST
Thanks Paul,

That thread addresses my issue exactly as I was trying to parse dates from an RSS feed as well.

Cheers,
Gord.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation