Formatting

Same name in other branches
  1. 7.x includes/common.inc \format
  2. 9 core/includes/common.inc \format
  3. 10 core/includes/common.inc \format

Functions to format numbers, strings, dates, etc.

File

core/includes/common.inc, line 236

Functions

Title Sort descending Deprecated File name Summary
date_iso8601 Deprecated core/includes/common.inc Returns an ISO8601 formatted date based on the given date.
format_date Deprecated core/includes/common.inc Formats a date, using a date type or a custom date format string.
format_size core/includes/common.inc Generates a string representation for the given byte count.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.