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

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#.
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
788
Баллы
113
use c#
return DateTime.Now.Date.ToShortDateString();
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
For future reference, "[\w\W]*?(?=\ )".
 

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