Date Compression and Year 2000 Challenges
By Robert L. Moore and D. Gregory Foley
Dr. Dobb's Journal May 1998
MMDDYYYY to DDDDDD Use MMDDToDDD.c (Listing Three; available electronically) to convert the MMDD part of MMDDYYYY to DDD--the day count within a year. Then use DDDYYYYToDDDDDD.c (Listing Six; available electronically) to convert DDD and the YYYY part of MMDDYYYY to DDDDDD.
Example 3: MMDDYYYY to DDDDDD.
Copyright © 1998, Dr. Dobb's Journal