|
-
Mar 17th, 2009, 07:46 AM
#1
Thread Starter
Lively Member
[RESOLVED] File saving
Hi, hope you can help.
I would like to know if it is possible to make my application be able to save the file as the current date. the idea is to have it where the staff login to the application and the application opens the file with the current day.
This means that in the morning before staff open the program the office staff can put up the information, i.e. like briefing sheet, daily notes. etc
Hope you can help
Sorry for the bad explanation
Stuart
Last edited by Hack; Mar 18th, 2009 at 06:08 AM.
Reason: Added RESOLVED to thread title and green resolve checkmark
-
Mar 17th, 2009, 08:03 AM
#2
Re: File saving
I assume you mean saving a file with a name that represents the current date. You can save a file with any name you like, as long as it follows Windows rules regarding length and legal characters. You can use the String.Format or Date.ToString method to create a string containing the current date. I'd suggest using the yyyyMMdd format as it means that alphabetical order and chronological order will be synchronised, e.g.
vb.net Code:
Dim fileName As String = String.Format("{0:yyyyMMdd}.txt", Date.Now)
-
Mar 17th, 2009, 04:49 PM
#3
Thread Starter
Lively Member
RESOLVED: File saving
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|