RSSAll Entries Tagged With: "date"

PHP Date() Function

The date() function converts a given timestamp into a readable date format. Here is the syntax for this function: Syntax date(format,timestamp); Parameters: format This parameter determines the format and how the date will read. For example: “Saturday, Nov. 16th 2009” would be the following code: $timestamp = time(); date(“l, M. jS Y”,$timestamp); timestamp This parameter [...]

PHP Date Formats Reference

Here is a table for formatting the PHP function date() and the letters used to represent different parts of a timestamp. a ‘am’ or ‘pm’ A ‘AM’ or ‘PM’ B Swatch Internet time d day of the month, 2 digits with leading zeros; i.e. ’01′ to ’31′ D day of the week, textual, 3 letters; [...]

The tutorials and scripts found on bgallz.org are for training purposes only, use to your discretion.