Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a Time Field without Date info??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00081597
Message ID:
00081860
Vues:
25
>>>In making a schedule of the date, it will ugly if
>>>show both date and time at ONE field, how to cut it down?
>>>Besides, If need to sort it ignoring the date part, of cos,
>>>no need to enter. As if don't enter date part, by Default,
>>>it will feed Today Date on Date part. So, Sort will cause problem..
>>>>_<'
>>
>>Justok,
>>
>>If you're using 2 fields, then default the first to Date() and the second to time(). Time() will give you hh:mm:ss (Hours/minutes/seconds) but you can cut off the seconds if you only want to see hours and minutes.
>>
>>HTH
>
>The Problem is the sorting....
>Because different Date entry will make it different in Date() part !
>
>Because I want to sort by Hour and Minute, Without concern on Date part!

In that case, STORE it as DateTime, but DISPLAY it as date with TTOD()

Look at the various functions, Justok, to get ideas.
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform