NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

1) CURDATE() or CURRENT_DATE() -> yyyy-mm-dd
2) CURTIME() or CURRENT_TIME() -> HH:MM:SS
3) Now() or CURRENT_TIMESTAMP() -> yyyy-mm-dd HH:MM:SS
4) DATE -> returns date part (yyyy-mm-dd) from given date;
e.g. SELECT DATE(now());
SELECT DATE('1998-01-02 23:34:34');

5)EXTRACT -> extracts specified unit from given datetime
e.g. SELECT EXTRACT(YEAR_MONTH FROM '1999-07-02')
SELECT EXTRACT(MINUTE_SECOND FROM now())

6) DATE_ADD / ADDDATE: when invoked it adds the interval time to given datetime.
e.g. SELECT DATE_ADD('1998-01-02', INTERVAL 29 DAY);
SELECT ADDDATE('1998-04-02', -31);
SELECT DATE_ADD('1997-12-31 23:59:59', INTERVAL '1:1' MINUTE_SECOND);
=1998-01-01 00:01:00

7) DATE_SUB / SUBDATE: similar to DATE_ADD, difference is it subtracts the interval time from given datetime.
e.g. SELECT date_sub('1997-12-31 23:59:59', INTERVAL '1:1' MINUTE_SECOND);
=1997-12-31 23:58:58
SELECT date_sub('1998-04-02', interval 1 day ); returns = 1998-04-01

8) DATEDIFF -> returns the difference between two given dates
e.g. SELECT DATEDIFF( now(), "2021-07-11");
SELECT DATEDIFF('1997-12-31 23:59:59', '1997-12-30')
9) DATE_FORMAT -> Formats the date value according to the specified format
e.g. SELECT DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y');

10) CONVERT_TZ
11) STR_TO_DATE
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.