ON 20040522@9:35:15 AM at page: http://techref.massmind.org/techref/os/win/winnt/allhelp.htm#38129.3994791667 James Newton[JMN-EFP-786] See also: http://gearbox.maem.umr.edu/batch/nt.specific.html Very nicley explained set of NT4 specific commands and examples. ON 20040522@10:19:53 AM at page: http://techref.massmind.org/techref/os/win/winnt/allhelp.htm#38129.430474537 James Newton[JMN-EFP-786] See also: http://www.ss64.com/ntsyntax/index.html Excellent organization of the information. ON 20040522@10:30:48 AM at page: http://techref.massmind.org/techref/os/win/winnt/allhelp.htm#38129.4380555556 James Newton[JMN-EFP-786] Says http://techref.massmind.org/techref/os/win/winnt/batchdate.htm Dates in NT Batch Files. ON 20040522@10:32:06 AM at page: http://techref.massmind.org/techref/os/win/winnt/batchdate.htm#38129.4389583333 James Newton[JMN-EFP-786] Code:
:s_julian_day
SET v_year=%1
SET v_month=%2
SET v_day=%3
   
SET /a v_month=v_month
SET /a v_day=v_day
  
SET /A a = 14 - v_month
SET /A a /= 12
SET /A y = v_year + 4800 - a
SET /A m = v_month + 12 * a - 3
SET /A m = 153 * m + 2
SET /A m /= 5
SET /A v_JulianDay = v_day + m + 365 * y + y / 4 - y / 100 + y / 400 - 32045
   
ECHO The Julian Day is [%v_JulianDay%]
ON 20040522@10:44:56 AM at page: http://techref.massmind.org/techref/os/win/winnt/batchdate.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://techref.massmind.org/techref/diff.asp?url=H:\techref\os\win\winnt\batchdate.htm&version=1 ON 20040522@10:49:07 AM at page: http://techref.massmind.org/techref/os/win/winnt/batchdate.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://techref.massmind.org/techref/diff.asp?url=H:\techref\os\win\winnt\batchdate.htm&version=2 ON 20040522@10:54:00 AM at page: http://techref.massmind.org/techref/os/win/winnt/batchdate.htm# James Newton[JMN-EFP-786] edited the page. Difference: http://techref.massmind.org/techref/diff.asp?url=H:\techref\os\win\winnt\batchdate.htm&version=3