Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To get Day of any Date
Message
From
02/04/2004 09:03:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/04/2004 06:04:16
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00891704
Message ID:
00891729
Views:
19
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform