TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gboldiston
NA
2
0
Problems with System.DateTime.Parse
Aug 24 2004 3:06 AM
I am writing a program to match up data in two files, primarily by date. The bit that is causing me trouble is as follows. First, I parse a line of a file, and extract the date into 3 variables: FoundDay, FoundMonth & FoundYear. I then create a new System.DateTime object and use the Parse function as follows: CADSTime = System.DateTime.Parse(FoundDay + "/" + FoundMonth + "/" + FoundYear + " " + FoundTime) However, this creates a DateTime object in US date format. ie, 7/1/2004. I need it to be in Australian date format. ie, 1/7/2004, however, I cannot seem to get it to work. If anyone could help me, that would be greatly appreciated.
Reply
Answers (
1
)
loop logic problems
how to integrate a third party s/w in a c# application