C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Literals: Date and TimeIn MySQL programming, Date and Time literals are in the form of strings or numbers. Following are some more formats in which date and time can be displayed.
Example 1
select id, name, salary, date_format(sal_date,'%d-%m-%y') as new_date_formate from staff1;
Example 2
select id, name, salary, date_format(sal_date,'%d%m%y') as new_date_formate from staff1;
Next TopicMySQL Procedure
|