|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
need help on DateDiff function!Hi ,
I am trying to use DateDiff to get the date after subtracting 60 days from today. Please help thanks -L Learner,
I think you need to use DateAdd, not DateDiff: DateAdd(DateInterval.Day, -60, Now) Kerry Moorman Show quoteHide quote "Learner" wrote: > Hi , > I am trying to use DateDiff to get the date after subtracting 60 > days from today. > > Please help > thanks > -L > > Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click Dim da As Date = Today da = da.AddDays(-60) MsgBox("60 days ago is " & da) End Sub Perhaps this will help. Joe Show quoteHide quote "Learner" <pra***@gmail.com> wrote in message news:1140108597.085654.125450@g44g2000cwa.googlegroups.com... > Hi , > I am trying to use DateDiff to get the date after subtracting 60 > days from today. > > Please help > thanks > -L > Yes that works. Thanks for the help. Also, i am just wondering if you
could help with me how do i handle windows file management in vb.net? i would use FileManagementSystem in classic or vb script. Is there an article to go about it . Because i am moving Directories and subdirectories and files to a different location and also need to crete folders and subdirectories on the fly if it doesn't find them. I am trying with Imports System.IO but any code snippet to manage the folders and files? Thanks -L You might find something useful here.
http://www.codeproject.com/vb/net/WhidbeyFileMgmnt.asp Joe -- Show quoteHide quote"Learner" <pra***@gmail.com> wrote in message news:1140114432.792551.191080@g43g2000cwa.googlegroups.com... > Yes that works. Thanks for the help. Also, i am just wondering if you > could help with me how do i handle windows file management in vb.net? i > would use FileManagementSystem in classic or vb script. Is there an > article to go about it . Because i am moving Directories and > subdirectories and files to a different location and also need to crete > folders and subdirectories on the fly if it doesn't find them. > > I am trying with Imports System.IO but any code snippet to manage the > folders and files? > Thanks > -L > With My.Computer.FileSystem
..CreateDirectory("C:\Test") ..CopyDirectory("C:\Test", "C:\Test1") MsgBox(.DirectoryExists("C:\JoeSu")) 'there are plenty more methods and properties for file management End With Hopefully, you're using 2005 ... Joe -- Show quoteHide quote"Learner" <pra***@gmail.com> wrote in message news:1140114432.792551.191080@g43g2000cwa.googlegroups.com... > Yes that works. Thanks for the help. Also, i am just wondering if you > could help with me how do i handle windows file management in vb.net? i > would use FileManagementSystem in classic or vb script. Is there an > article to go about it . Because i am moving Directories and > subdirectories and files to a different location and also need to crete > folders and subdirectories on the fly if it doesn't find them. > > I am trying with Imports System.IO but any code snippet to manage the > folders and files? > Thanks > -L >
by default, public or private?
Getting current user name How is it possible ... Edanmo Shell Extension: How to Install it? Getting Color Depth / Quality of display adpater / screen Transparent splash screen Treeview, Transparent Label Property of List of Classes TripleDES class - Suggestions Requested. |
|||||||||||||||||||||||