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

No date formatting options in DW for PHP?

Explorer ,
Apr 12, 2013 Apr 12, 2013

Copy link to clipboard

Copied

So I noticed that DW has date formating options for recordset columns for ASP, but not for PHP.  I need to format a mySQL date and I've seen instructions out there on the net, and will probably go do the research, but anyone have an extension or something that will provide this functionality in DW???

TOPICS
Server side applications

Views

453
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
LEGEND ,
Apr 13, 2013 Apr 13, 2013

Copy link to clipboard

Copied

LATEST

The normal way to format a MySQL date is by using the DATE_FORMAT() function in the SQL query. Use an alias in the query to make it easier to display the result. For example:

SELECT DATE_FORMAT(updated, '%W, %M %D, %Y') AS updated

FROM some_table

That formats the date like this: Saturday, April 13, 2013.

Votes

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