So, I’m trying to get the Julian day to print out in a yyjjj format. So for example, today is the 25th day of the year. It should be 17025. But instead, I just get, 1725. I’ve tried adjusting it but I get all sorts of errors and nonsense and I may have accidentally thrown away my powershell book…
Gets the Julian date to be used in the name of the case.
$JulianDay = $(Get-Date).dayofyear
$Year = Get-Date -format yy
$JulianDate = $Year+$JulianDay
submitted by /u/AnotherSmegHead
[link] [comments]
The post Trying to fix a julian date output appeared first on How to Code .NET.