51 routines :

*AppleScriptsVanilla*
ascii_to_HTML
Average
Calculator
Calendar
Count_item
cut_text
days_week
EAN13
Encrypt-Decrypt
FactPremier
French_Vanilla_Dotted_Date
French_Vanilla_Dotted_Date2
Hexa_to_Bin
Last_month
list_erase
list_insert
list_replace
ListeDiviseurs
ListePremiers
Minuscule
NombreLong
NombreLong2
NomExtension
num_item
num_month
num_month2
num_week
number_format
number_format2
Paques
PGCD
PGCD2
reverse_string
Roman_to_Arab
round_decimal
search_email
search_replace
search_URL
SepNbre
SepNbre2
snip_text
stat
TauxPermut
TauxTransform
the_left
the_right
TriBulle
TriLineaire
week_and_year
XOR
ZeroDouble

French_Vanilla_Dotted_Date

Syntaxe

on French_Vanilla_Dotted_Date()
Retourne la date courante au format Français. Le résultat est au format texte.
Adapté de Jeff Baumann.

Exemple

French_Vanilla_Dotted_Date()
---> "11/09/2001"


Script

on French_Vanilla_Dotted_Date()
set full_Month to 2629728 -- 730.48 * 60 * 60
set half_Month to full_Month div 2 -- 1314864
set current_Date to (current date)
copy current_Date to january_Date
set the month of january_Date to January
set month_Num to (1 + (current_Date - january_Date + half_Month) div full_Month)
set the_month to text -2 thru -1 of (("0" & month_Num) as string)
set the_date to text -2 thru -1 of ("0" & (day of current_Date as string))
return (the_date & "/" & the_month & "/" & (year of current_Date)) as string
end French_Vanilla_Dotted_Date

Site scripté avec HyperCard ©1987-1998 Apple Computer, Inc.
Mise à jour le 19/01/10 à 08:45:57