What is the regex to remove time form date and time?

  • Автор темы Автор темы Harambulus
  • Дата начала Дата начала

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Реакции
10
Баллы
18
using: {-TimeNow.Date-}

which gives date and time.

but i only want the date. What is regex to remove everything after the date?

Never mind found a post on here for it using C#.
 
use c#
return DateTime.Now.Date.ToShortDateString();
 
For future reference, "[\w\W]*?(?=\ )".
dd44104f815f1e1a028299d54bda2654.png
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)