Check out example codes for "sql server get current date". It will help you in understanding the concepts better.

Code Example 1

GETDATE()

Code Example 2

GETDATE()

Code Example 3

Add GETDATE() in sql query where you want to pass current timestamp.

Example
Return the current database system date and time:

SELECT GETDATE();

Code Example 4

SELECT getdate()

Code Example 5

SELECT GETDATE();

Learn ReactJs, React Native from akashmittal.com