Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To get Day of any Date
Message
De
02/04/2004 09:03:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/04/2004 06:04:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00891704
Message ID:
00891729
Vues:
18
cdow() works, but it depends on the language of the support library. Better create your own function, using dow() to get the number of the day of the week:
function MyDOW(tdDate)
do case
case dow(tdDate) = 1
  return "Sunday"
case dow(tdDate) = 2
  return "Monday"
...
case dow(tdDate) = 7
  return "Saturday"
otherwise
  return "???"
endcase
Note that you can easily adapt this to whatever language is popular in your region.

>Dear Experts
>
>On a form there is a date type textbox1.A user writes some date in this textbox. What will be the source codes to get the day against that date, in characters, in text2.box.
>
>For example
>
>set date to british
>Thisform.text1.value={02/04/2004}
>thisform.text2.value='Friday'
>
>Please help
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform