Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove the Time from a DateTime
Message
From
25/11/2004 07:59:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/11/2004 06:33:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Oracle
Miscellaneous
Thread ID:
00964641
Message ID:
00964655
Views:
8
>I am using Oracle as a backend with SQL pass thru.
>When you do this all date fields are automatically datetime.
>
>Is there any easy way I can remove the "time" portion in selected text boxes
>so the user does not need to see and enter this part.
>
>I saw SET SECONDS OFF which removes the seconds. But I'm looking for a SET TIME OFF or inputmask expression that can do this..
>
>BR
>Tim

Tim,
As I read you're using VFP8. Then use CursorAdapter. Set datatype to Date in cursorschema and instruct CursorFill to use the schema (1st parameter true).
PS: For a sample with SQL server check Thread #940852
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform