N
N
nnkrasovok2019-09-25 10:20:27
SQL Server
nnkrasovok, 2019-09-25 10:20:27

How to get date in date format?

SELECT fullname, startdate FROM course
startdate - stored in bigint format. How to output it in date format?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nnkrasovok, 2019-09-25
@nnkrasovok

it turned out like this
DATE_FORMAT(FROM_UNIXTIME(startdate),'%Y-%m-%d')

D
d-stream, 2019-09-25
@d-stream

https://docs.microsoft.com/ru-RU/sql/t-sql/functio...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question