How to ( - ) the date of the last to give me output Py days
-
like dim days as integar days = Date.Now.ToShortDateString - any date.ToShortDateString
Ahmed El-Badry
-
like dim days as integar days = Date.Now.ToShortDateString - any date.ToShortDateString
Ahmed El-Badry
days = (DateTime.Now - anyDate).Days;
If you substract oneDateTime
object (NOTstring
) from anotherDateTime
object you get aTimeSpan
object.TimeSpan
has the propertyDays
which appears to be what you want.
Upcoming events: * Glasgow: Geek Dinner (5th March) * Edinburgh: Web Security Conference Day for Windows Developers (12th April) My: Website | Blog | Photos
-
days = (DateTime.Now - anyDate).Days;
If you substract oneDateTime
object (NOTstring
) from anotherDateTime
object you get aTimeSpan
object.TimeSpan
has the propertyDays
which appears to be what you want.
Upcoming events: * Glasgow: Geek Dinner (5th March) * Edinburgh: Web Security Conference Day for Windows Developers (12th April) My: Website | Blog | Photos
Please give an example of it thnx:rose:
Ahmed El-Badry
-
Please give an example of it thnx:rose:
Ahmed El-Badry
Ahmed El-Badry wrote:
Please give an example of it
I did! Read the first line, which is a sample of code[^]
Upcoming events: * Glasgow: Geek Dinner (5th March) * Edinburgh: Web Security Conference Day for Windows Developers (12th April) My: Website | Blog | Photos