How to insert yyyy-yyyy date format in MySQL database via VB.NET -



How to insert yyyy-yyyy date format in MySQL database via VB.NET -

i can insert date format yyyy in database datatype of year(4) vb.net code:

sql = "insert tblyear(year) values(now())"

i'm planning insert this year - next year, phone call school year.

i agree @daniel, should store current year , have display code format things way want. if need works:

sql = "insert tblyear(year) values (concat(year(now()),'-',(year(now()) + 1)))"

mysql vb.net

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -