Your answer match my assumptions.
But I disagree.
At this time, for see, the default format is set the ISO 8601 one so your first one : "9/4" issue an error.
With this setting, date "2015-09-04 10:15" funnily enough compiles flawlessly as date "vendredi 4 septembre 2015 10:15:00"
try
set maybe to "10:20:12"
log "01, " & (date maybe) (*01, jeudi 20 août 2015 10:20:12*)
on error
log "01, " & maybe & ", is rejected"
end try
try
set maybe to "10:20 12"
log "02, " & (date maybe) (*02, jeudi 20 août 2015 10:20:12*)
on error
log "02, " & maybe & ", is rejected"
end try
try
set maybe to "10:20 12"
log "03, " & (date maybe) (*03, jeudi 20 août 2015 10:20:12*)
on error
log "03, " & maybe & ", is rejected"
end try
try
set maybe to "10:20-12"
log "04, " & (date maybe) (*04, jeudi 20 août 2015 10:20:12*)
on error
log "04, " & maybe & ", is rejected"
end try
try
set maybe to "10:20:12 AM"
log "05, " & (date maybe) (*05, jeudi 20 août 2015 10:20:12*)
on error
log "05, " & maybe & ", is rejected"
end try
try
set maybe to "22:20:12 AM"
log "06, " & (date maybe) -- (*06, jeudi 20 août 2015 22:20:12*) -- is it right ??
on error
log "06, " & maybe & ", is rejected"
end try
try
set maybe to "10:20-12 PM"
log "07, " & (date maybe) -- (*07, jeudi 20 août 2015 10:20:12*) -- bad, would be 22:20:12
on error
log "07, " & maybe & ", is rejected"
end try
try
set maybe to "22:20-12 PM"
log "08, " & (date maybe) -- (*08, jeudi 20 août 2015 22:20:12*) -- OK
on error
log "08, " & maybe & ", is rejected"
end try
try
set maybe to "10:20;12"
log "09, " & (date maybe) -- (09, *jeudi 20 août 2015 10:20:00*) -- bad
on error
log "09, " & maybe & ", is rejected"
end try
try
set maybe to "10:20,12"
log "10, " & (date maybe) -- (*10, jeudi 20 août 2015 10:20:00*) # bad
on error
log "10, " & maybe & ", is rejected"
end try
try
set maybe to "10:20a12"
log "11, " & (date maybe) -- (*11, jeudi 20 août 2015 10:20:00*) # bad
on error
log "11, " & maybe & ", is rejected"
end try
try
set maybe to "10:20/12"
log "12, " & (date maybe) -- (*12, jeudi 20 août 2015 10:20:00*) # bad
on error
log "12, " & maybe & ", is rejected"
end try
try
set maybe to "10:20?12"
log "13, " & (date maybe) -- (*13, jeudi 20 août 2015 10:20:00*) # bad
on error
log "13, " & maybe & ", is rejected"
end try
try
set maybe to "10:20@12"
log "14, " & (date maybe) -- (*14, jeudi 20 août 2015 10:20:00*) # bad
on error
log "14, " & maybe & ", is rejected"
end try
try
set maybe to "10@20:12"
log "15, " & (date maybe)
on error
log "15, " & maybe & ", is rejected"
end try
try
set maybe to "10:20"
log "16, " & (date maybe) (*16, jeudi 20 août 2015 10:20:00*)
on error
log "16, " & maybe & ", is rejected"
end try
try
set maybe to "10 20"
log "17, " & (date maybe) (*17, jeudi 20 août 2015 10:20:00*)
end try
try
set maybe to "10-20"
log "18, " & (date maybe) (*18, jeudi 20 août 2015 10:20:00*)
on error
log "18, " & maybe & ", is rejected"
end try
try
set maybe to "10a20"
log "19, " & (date maybe)
on error
log "19, " & maybe & ", is rejected" (*19, 10a20, is rejected*)
end try
try
set maybe to "01/12/2015"
log "20, " & (date maybe) (*20, mardi 1 décembre 2015 00:00:00*)
on error
log "20, " & maybe & ", is rejected"
end try
try
set maybe to "31-12-1943"
log "21, " & (date maybe) -- (*21, vendredi 31 décembre 1943 00:00:00*)
on error
log "21, " & maybe & ", is rejected"
end try
try
set maybe to "12/31/1943"
log "22, " & (date maybe)
on error
log "22, " & maybe & ", is rejected" (*22, 12/31/1943, is rejected*)
end try
set baseDate to (short date string of (current date)) & space
try
set maybe to baseDate & "10:20:12"
log "101, " & (date maybe) (*101, jeudi 20 août 2015 10:20:12*)
on error
log "101, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20 12"
log "102, " & (date maybe) (*102, jeudi 20 août 2015 10:20:12*)
on error
log "102, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20 12"
log "103, " & (date maybe) (*103, jeudi 20 août 2015 10:20:12*)
on error
log "103, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20-12"
log "104, " & (date maybe) (*104, jeudi 20 août 2015 10:20:12*)
on error
log "104, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20:12 AM"
log "105, " & (date maybe) (*105, jeudi 20 août 2015 10:20:12*)
on error
log "105, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "22:20:12 AM"
log "106, " & (date maybe) -- (*106, jeudi 20 août 2015 22:20:12*) -- is it right ??
on error
log "106, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20-12 PM"
log "107, " & (date maybe) -- (*107, jeudi 20 août 2015 10:20:12*) -- bad, would be 22:20:12
on error
log "107, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "22:20-12 PM"
log "108, " & (date maybe) -- (*108, jeudi 20 août 2015 22:20:12*) -- OK
on error
log "108, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20;12"
log "109, " & (date maybe) -- (109, *jeudi 20 août 2015 10:20:00*) -- bad
on error
log "109, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20,12"
log "110, " & (date maybe) -- (*110, jeudi 20 août 2015 10:20:00*) # bad
on error
log "110, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20a12"
log "111, " & (date maybe) -- (*111, jeudi 20 août 2015 10:20:00*) # bad
on error
log "111, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20/12"
log "112, " & (date maybe) -- (*112, jeudi 20 août 2015 10:20:00*) # bad
on error
log "112, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20?12"
log "113, " & (date maybe) -- (*113, jeudi 20 août 2015 10:20:00*) # bad
on error
log "113, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10:20@12"
log "114, " & (date maybe) -- (*114, jeudi 20 août 2015 10:20:00*) # bad
on error
log "114, " & maybe & ", is rejected"
end try
try
set maybe to baseDate & "10@20:12"
log "115, " & (date maybe) -- (*115, mercredi 19 août 2015 00:00:00*) # bad
on error
log "115, " & maybe & ", is rejected"
end try
Yvan KOENIG running Yosemite 10.10.5 in French (VALLAURIS, France) jeudi 20 août 2015 11:41:07