Skip to main content
NinetreesAnswer
3-Newcomer
Oct 13, 2010 11:53 PM UTC

It depends on what you intend to do with the data...(and you might want to post excerpts of large files that illustrate your point or need...)

You could create an array DaysInMonth 0..12 of ( 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)

and this one

JulianDays array [0..12] of (0, 31, 59, 90,120,151,181,212,243,273,304,334,365)

Then it's up to you to use them...for example (do you intend to do real date stuff with them? leap years, etc?) Feb 2 is DaysInMonth[1 + 2 to get the Julian day of the year. I wouldn't be surprised to find that someone has already addressed this in the forum...

~R~

4 replies

Ninetrees3-NewcomerAnswer
3-Newcomer
Oct 13, 2010 11:53 PM UTC

It depends on what you intend to do with the data...(and you might want to post excerpts of large files that illustrate your point or need...)

You could create an array DaysInMonth 0..12 of ( 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)

and this one

JulianDays array [0..12] of (0, 31, 59, 90,120,151,181,212,243,273,304,334,365)

Then it's up to you to use them...for example (do you intend to do real date stuff with them? leap years, etc?) Feb 2 is DaysInMonth[1 + 2 to get the Julian day of the year. I wouldn't be surprised to find that someone has already addressed this in the forum...

~R~

Translate
1-Visitor
Oct 14, 2010 12:36 AM UTC

got it. thanks.

Translate
19-Tanzanite
Oct 15, 2010 3:11 PM UTC

I just updated the Dates document with function to do this.

http://communities.ptc.com/docs/DOC-1395

Translate
1-Visitor
Oct 15, 2010 6:44 PM UTC

Is this file required for the problem in question?

Even though I must add there's some good work within the worksheet now.

Mike

Translate