16,004,782 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Eager2Lern (Top 22 by date)
Eager2Lern
12-May-11 13:44pm
View
saini, please read my question carefully
Eager2Lern
8-May-11 11:32am
View
Gr8 work Michael..I appreciate...
Eager2Lern
20-Apr-11 3:22am
View
walter, i found the solution
My file is of excel(xlsx) format and the interoperability method works in text files only when i copied the data into a text file and renamed it to a different format for eg. .MAS format it started reading fine..thanks man..
Eager2Lern
20-Apr-11 3:05am
View
Walter, do you want me to upload the excel file
Eager2Lern
20-Apr-11 3:02am
View
I am using the same code in another project at this point its not working..why is this happening even after setting the object format as 6 which is for special characters
Eager2Lern
20-Apr-11 2:53am
View
Walter, i am going crazy....I tried object format 6..not working please help
Eager2Lern
17-Apr-11 4:42am
View
Thanks Albin.I tried myself and the issue is sorted out
Eager2Lern
16-Apr-11 17:35pm
View
can you provide me a sample code
Eager2Lern
16-Apr-11 13:25pm
View
Your solution not working...
Eager2Lern
16-Apr-11 12:38pm
View
no errors its creating additional columns and filling data into it
Eager2Lern
6-Apr-11 18:04pm
View
Thank you walterhevedeich...that really helped...you are a gem of a person
Eager2Lern
9-Feb-11 12:32pm
View
I mean how to read the command node (which is a virtual table in crystal report) in code
Eager2Lern
6-Feb-11 1:40am
View
The link was to have a better understanding of what i really want. Coz am getting answers with query hard coded....
Eager2Lern
5-Feb-11 2:54am
View
Please find below the full code
private void ReadButton_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Folder not selected", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
else
{
string path = textBox1.Text;
if (rad.Checked)
{
string format = "dd/M/yyyy HH:mm:ss";
DateTime frmdate = Convert.ToDateTime(FromDatePkr.Text).Date;
DateTime todate = Convert.ToDateTime(ToDatePkr.Text).Date;
DirectoryInfo Dir = new DirectoryInfo(path);
FileInfo[] FileList = Dir.GetFiles("*.*", SearchOption.AllDirectories);
foreach (FileInfo FI in FileList)
{
DateTime filedat = FI.CreationTime.Date;
string fidate = filedat.ToString(format);
DateTime filedate = DateTime.Parse(fidate);
if (DateTime.Compare(filedate, frmdate) >= 0 && (DateTime.Compare(filedate, todate) <= 0))
{
}
}
}
}
}
Actually i want to convert the file creation time format inorder to work on the compare function in the code
Eager2Lern
5-Feb-11 2:48am
View
Hi mkgoud,
I have mentioned the link in the below post...
My question is mentioned below the link
Eager2Lern
5-Feb-11 2:39am
View
Hi,
I am getting the below error now
filedatepkr.Value = DateTime.Parse(fidate)
String was not recognized as a valid DateTime.
Please help
Eager2Lern
5-Feb-11 2:28am
View
in src should i mention the address to the picture in my system
Eager2Lern
5-Feb-11 1:56am
View
foreach (FileInfo FI in FileList)
{
DateTime filedat = FI.CreationTime.Date;
string fidate = filedat.ToString();
DateTimePicker filedatepkr = new DateTimePicker();
//filedatepkr.CustomFormat = "dd/MM/yyyy";
filedatepkr.Text = DateTime.ParseExact(fidate, "dd/MM/yyyy", null);
After this code i get the error
cannot implicitly convert type System.DateTime to String
Please help
Eager2Lern
5-Feb-11 1:12am
View
Thanks Imdad..I will check
Eager2Lern
18-Jan-11 1:31am
View
Any one Please help
Eager2Lern
14-Jan-11 13:08pm
View
Actually what i am doing is that i am inserting the data in each file into a table in the database...So i want to copy the file name of each file in the loop to a new text file so that the next time the loop is excuted it should check the file name with the names in the text file so that duplicate data's are not inserted
Eager2Lern
13-Jan-11 14:54pm
View
I want to read the data from the text file and insert in a table in the database.Can you provide the code plz...
Show More