T
T
Trianid Trianid2016-03-29 15:27:59
MySQL
Trianid Trianid, 2016-03-29 15:27:59

How to set the @nowtime variable to the time value "now" in C#?

You need to use the current time value in the SQL query in the format 2016-03-26 00:39:53. How to create a variable that will pull this time into itself so that it can be inserted where necessary? C#. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alec Onim, 2016-03-29
@trianid

DateTime.Now;
?

M
mletov, 2016-03-29
@mletov

And what for to take from C#, than native sql-vskie GETDATE () / NOW () are bad?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question