B
B
BjergRub2018-06-15 20:31:14
C++ / C#
BjergRub, 2018-06-15 20:31:14

How to format to date?

how to format in another format more readable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eRKa, 2018-06-15
@BjergRub

For example like this

var dateTime = DateTime.Now;
var dateStr = dateTime.ToString("dd.MM.yyyy HH:mm");

possible formats

A
Alexey Nikolaev, 2018-06-15
@AlNy

Open the corresponding manual and find the appropriate date conversion function there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question