Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting date into sql or firebird;What is .t. value in
Message
 
À
17/09/2005 08:07:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01050571
Message ID:
01057113
Vues:
11
Hi Kerwan

Try it this way, shouldn't be hard to miss.
?sqlexec(nHandle,'INSERT INTO X (date) values (' + FBDTOS({01/01/2005}) + ')')
?sqlexec(nHandle,'INSERT INTO X (date) values (' + FBDTOS(DATE()) + ')')

FUNCTION FBDTOS(tdDate)
	RETURN "'" + TRANSFORM(YEAR(tdDate), "@L 9999") + "-" ;
		+ TRANSFORM(MONTH(tdDate), "@L 99") + "-" ;
		+ TRANSFORM(DAY(tdDate), "@L 99") + "'"
ENDFUNC
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform