|
|
|
mysql> select substring(now(),1,10) as foo;
+------------+
| foo |
+------------+
| 1997-12-29 |
+------------+
1 row in set (0.00 sec)
mysql> select substring(now(),11,8) as foo;
+----------+
| foo |
+----------+
| 17:06:2 |
+----------+
1 row in set (0.00 sec)
mysql> select substring(now(),12,8) as foo;
+----------+
| foo |
+----------+
| 17:06:33 |
+----------+
|
|
| Phorum, MySQL, Language, UK date format, MySQL UK Date format Categories : PHP, Date Time, Strings, MySQL, Databases | | | mysql_escape_string Categories : PHP, MySQL, Databases, Strings | | | Finding the day of the week for a specific date.
Categories : PHP, Databases, MySQL, Date Time | | | MySql date format function Categories : MySQL, Date Time, Databases | | | mysql date/time converters Categories : PHP, MySQL, Databases, Date Time | | | Mimic ASP's GetString function with PHP Categories : PHP, Databases, MySQL, Strings | | | Data Retrieve from Mysql using AJAX with PHP Categories : PHP, AJAX, Date Time, Databases, MySQL | | | List people whose birthdays fall on the current Day and Month
Categories : Databases, Date Time, MySQL, PHP | | | In Mysql, the 'datetime' data type is used to store date that looks like '2007-10-16 16:26:30'. we are going to design a function called mysqldate() that takes a mysql date and output format as input and outputs a well formated date. Categories : PHP, Date Time, Databases, MySQL | | | This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server. Categories : Databases, MySQL, Complete Programs, PHP, Databases | | | Simple function to return the number of days in a time span between 2 given dates. Categories : PHP, Date Time, MySQL, Databases | | | Checks Date-Input from HTML-Forms and converts to YYYY-MM-DD Format for MySQL Date-Fields Categories : MySQL, Date Time, PHP, Databases | | | PHP Calendar Web App Categories : PHP, Databases, MySQL, Date Time, Calendar | | | Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP, Arrays, Date Time, Databases, MySQL | | | Count how many weeks in the month have a specified day, such as Mon, Tue, etc. Var avail - number of days - first day name of the month, occurrences of Sun, occurrences of Mon, etc. Allows you to calculate number of working hours exclude Holidays. Categories : Calendar, Date Time, PHP, Databases, MySQL | |
|
|
|