replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - .Net System.DateTime not working?
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.Net System.DateTime not working?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
alex21



Joined: 20 Apr 2011
Posts: 75
Location: Australia

PostPosted: Fri Sep 23, 2011 3:05 am    Post subject: .Net System.DateTime not working? Reply with quote

Hello,

I have been trying access the properties on the .Net System.DateTime class, however it is not working and all properties result in '1'.

For Example:
Code:

OBJECT("System.DateTime"), INTENT(IN) :: testDate
INTEGER :: Day
INTEGER :: Month
INTEGER :: Year

Day = testDate%Day
Month = testDate%Month
Year = testDate%Year


However after the above code has executed the variables Day, Month and Year will all be '1' and not the values that were sent into the subroutine.

I have also expierianced some very strange runtime problems when trying to get around this issue using a data helper class i coded to interface with FORTRAN.

It seems that the pointer to the DateTime object is being lost or misrepresented.

Can anyone please explain how I can access these properties on a DateTime object?

Thanks,
Alex.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group