C# calculate datetime - int

ساخت وبلاگ

Vote count: 0

I'm trying to calculate a datetime - int, which way would be the best to realize this?

DateTime currentTime = new DateTime();
int test = 23;
dateTime newDate = currentTime - test;

This example doesn't work, which way could I realize this?

I appreciate any kind of help

asked 15 secs ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 220 تاريخ : پنجشنبه 7 ارديبهشت 1396 ساعت: 5:42