Reputation: 5224
my question is how to convert input DateTime value into Julian date format but the result should be in the format "0YYDDD"? I suppose January, 2nd 2011 should look like "011002".
Thanks
Upvotes: 2
Views: 4341
Reputation: 370
Alternatively:
julianFormatString = "0" + (dateTimeVar.Year % 100).ToString() + "0" + dateTimeVar.Day.ToString();
Upvotes: 0