V Vayse Oct 5, 2005 #1 In VB6, I would have used Date() That no longer works. How do I find todays date in VB.net?
S Siva M Oct 5, 2005 #2 DateTime.Now In VB6, I would have used Date() That no longer works. How do I find todays date in VB.net?
DateTime.Now In VB6, I would have used Date() That no longer works. How do I find todays date in VB.net?
H Herfried K. Wagner [MVP] Oct 5, 2005 #4 Vayse said: In VB6, I would have used Date() That no longer works. How do I find todays date in VB.net? Click to expand... 'Now' or 'DateTime.Now' (= 'Date.Now'). To determine the date component of the 'Date' returned by 'Now' you can use 'Date''s 'Date' property: \\\ Dim d As Date = Now.Date ///
Vayse said: In VB6, I would have used Date() That no longer works. How do I find todays date in VB.net? Click to expand... 'Now' or 'DateTime.Now' (= 'Date.Now'). To determine the date component of the 'Date' returned by 'Now' you can use 'Date''s 'Date' property: \\\ Dim d As Date = Now.Date ///
J Jay B. Harlow [MVP - Outlook] Oct 5, 2005 #5 Vayse, In addition to the other Comments: You can simply use DateTime.Today to get today's date with a zero for the Time value. -- Hope this helps Jay T.S. Bradley - http://www.tsbradley.net | In VB6, I would have used Date() | That no longer works. | | How do I find todays date in VB.net? | |
Vayse, In addition to the other Comments: You can simply use DateTime.Today to get today's date with a zero for the Time value. -- Hope this helps Jay T.S. Bradley - http://www.tsbradley.net | In VB6, I would have used Date() | That no longer works. | | How do I find todays date in VB.net? | |