date1$ = GetDate
date2$ = GetDate
PRINT "The difference between "; date1$;
" and "; date2$;
" is ";
String.Trim
(STR$(difference_of_days
(date1$
, date2$
)));
" days" __GetNewDate
SHELL$
= "PowerShell -WindowStyle Hidden -ExecutionPolicy Bypass " + CHR$(34) + "&'" + StartDir
+ "\GetNewDate.ps1';exit $LASTEXITCODE" + CHR$(34) month
= "0" + MID$(datepicked
, 1, 1) day
= MID$(datepicked
, 2, 2) year
= MID$(datepicked
, 4, 4) month
= MID$(datepicked
, 1, 2) day
= MID$(datepicked
, 3, 2) year
= MID$(datepicked
, 5, 4) GetDate = month + "-" + day + "-" + year
GetDate = ""
IF M
< 3 THEN M
= M
+ 12: Y
= Y
- 1 'add 12 to Jan - Feb month, -1 year C
= Y \
100: Y
= Y
MOD 100 'split century and year number S1 = (C \ 4) - (2 * C) - 1 'century leap
S2 = (5 * Y) \ 4 '4 year leap
S3 = 26 * (M + 1) \ 10 'days in months
WkDay
= (S1
+ S2
+ S3
+ D
) MOD 7 'weekday total remainder IF WkDay
< 0 THEN WkDay
= WkDay
+ 7 'Adjust negative results to 0 to 6 CASE 3: day
= "Wednesday" CASE 2: Moon
= "February" CASE 9: Moon
= "September" CASE 10: Moon
= "October" CASE 11: Moon
= "November" CASE 12: Moon
= "December" WeekDay
= day
+ ", " + Moon
+ " " + ordinal_suffix_of
(LTRIM$(RTRIM$(STR$(D
)))) + ", " + MID$(formatteddate
, 7, 4)
check_leap_year = 1
check_leap_year = 0
IF month
= 1 OR month
= 3 OR month
= 5 OR month
= 7 OR month
= 8 OR month
= 10 OR month
= 12 THEN no_of_days_in_month = 31
no_of_days_in_month = 30
n = check_leap_year(year)
no_of_days_in_month = 29
no_of_days_in_month = 28
difference_of_days = 0
difference_of_days
= ABS(day1
- day2
) FOR i
= month1
TO month2
- 1 result = result + no_of_days_in_month(i, year1)
difference_of_days = result
result = result + (day2 - day1)
difference_of_days = result
result = result - (day1 - day2)
difference_of_days = result
result = 0
FOR i
= month2
TO month1
- 1 result = result + no_of_days_in_month(i, year1)
difference_of_days = result
result = result + (day1 - day2)
difference_of_days = result
result = result - (day2 = day1)
difference_of_days = result
FOR i
= year1
TO year2
- 1 IF check_leap_year
(i
) = 1 THEN temp = temp + 366
temp = temp + 365
difference_of_days = temp
difference_of_days = temp + (day2 - day1)
difference_of_days = temp - (day1 - day2)
result = 0
FOR i
= month1
TO month2
- 1 result = result + no_of_days_in_month(i, year2)
difference_of_days = temp + result
result = result + (day2 - day1)
difference_of_days = temp + result
result = result - (day1 - day2)
difference_of_days = temp + result
result = 0
FOR i
= month2
TO month1
- 1 result = result + no_of_days_in_month(i, year2)
difference_of_days = temp - result
result = result + (day1 - day2)
difference_of_days = temp - result
result = result - (day2 - day1)
difference_of_days = temp - result
temp = 0
FOR i
= year2
TO year1
- 1 IF check_leap_year
(i
) = 1 THEN temp = temp + 366
temp = temp + 365
difference_of_days = temp
difference_of_days = temp + (day1 - day2)
difference_of_days = temp - (day2 - day1)
result = 0
FOR i
= month2
TO month1
- 1 result = result + no_of_days_in_month(i, year1)
difference_of_days = temp + result
result = result + (day1 - day2)
difference_of_days = temp + result
result = result - (day2 - day1)
difference_of_days = temp + result
result = 0
FOR i
= month1
TO month2
- 1 result = result + no_of_days_in_month(i, year1)
difference_of_days = temp - result
result = result + (day2 - day1)
difference_of_days = temp - result
result = result - (day1 - day2)
difference_of_days = temp - result
ordinal_suffix_of = i + "st"
ordinal_suffix_of = i + "nd"
ordinal_suffix_of = i + "rd"
ordinal_suffix_of = i + "th"
Clock$ = hour$ + min$ + ampm$
IF _FILEEXISTS("GetNewDate.ps1") = 0 THEN 'remove this line if you are compiling in FreeBasic '#lang "qb" 'uncomment this line if compiling in FreeBasic
A$ = ""
A$ = A$ + "haI_D5\SC334mNUjoPEYB=A\9JkFF0]8TXT54XBgFAZH?\R3^>CgJ`=>[mDe"
A$ = A$ + "6#lUa1nThG0WhTX4JjR42Q?Td>n=SOck=aolkoHLDTgRd4Ph=F[Q=;5YGAg0"
A$ = A$ + "T`D=2Kl_V779gYmO]D]Ag]cm3nB5M7?nf^M^Y]\m7WT8h<:bUaOlR;NE<MY0"
A$ = A$ + "n0G_U:2aD1XMLOFg>mGI`BN>i:HWg\UO2H8YIEbNBlV[T9P2C9_h[Mk#<[#T"
A$ = A$ + "Z`iB=?[lVl_i`\J0a`P0861E8C1#LAAhO18E[6TXXglcQLfS6M2i\AWJcJ1\"
A$ = A$ + "7[WeP##TW25Q15#T9KTJ\2BOD]5jfiK5m[oKIFBgD8c3W9EkA5UQ69GbhVR6"
A$ = A$ + "U5gI0S:Ph8Z:Qcn\?W97hJ:GI`kC2W:Sae1U0KA;G;g]#6AC3h:V0\<N5EX1"
A$ = A$ + "knCYk]]XA73TKSAcn3[e=1Vj[T2SS75iDa83k<0V=iUKA<_K?:o:#L8aNWd>"
A$ = A$ + "nLLkI^TKXcXWN2IhS?_5CmhNjC>?cBKaA=6j\95nhULZ#Nkk1mF1Nh#FmM=f"
A$ = A$ + "f\9edTa<6TPEmNU>d^VE^[Ec2Xa<#lO#g6>LdoFQcblo6acVImQZVR#3AYMA"
A$ = A$ + "\>2[#Z:?K;l\iLkajT_?O5aY4S7LgOdNM95jKo8cGUIU]LFg_jkSl;Mn=DI_"
A$ = A$ + "mG83AUA4Mj=MJDDZIec]9^C9?dnKKh[EL4lNCfe8eR2ki=no3Z1[7Y_CeQ]F"
A$ = A$ + "Z`\KT:>EGgN6amG0CUkg%%%0"
btemp$ = ""
IF F$
<> "%" THEN C$
= C$
+ F$
B&
= B&
* 64 + ASC(MID$(B$
, t%
)) - 48 X$
= X$
+ CHR$(B&
AND 255): B&
= B& \
256 END IF 'remove this line if you are compiling in FreeBasic