Hey I am looking to create a Julian date format like YYDDD from the current date where the DDD would be the number of days since the year began.
Is there any .NET functions to do this easily ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since, if you’re working with Julian dates, you probably will need to do this again and again, I suggest writing an extension function for System.DateTime, which would execute something like the following:
ETA: If what you want to do is convert a DateTime to the Julian date format (create a formatted string in Julian date format), I still suggest an extension function, but it would look like this: