Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplify Converting Format of Character Time
Message
From
31/01/2008 13:12:24
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Simplify Converting Format of Character Time
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01287573
Message ID:
01287573
Views:
61
This works but something bothers me about using the RIGHT(RIGHT and I think there must be a simplier way.
S_ToT = "1515"

m.Result = Ttoc(Ctot(Transform(Dtos(Date()), '@R 9999-99-99') + 'T' + LEFT(RIGHT(STR(S_ToT),4),2) + ':' + RIGHT(RIGHT(STR(S_ToT),4),2)), 2)

m.Result = "03:15:00 PM"
Next
Reply
Map
View

Click here to load this message in the networking platform