Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: mk sharma
  Where is mk sharma?
 mumbai
 India
 mk sharma
 Tags
Subject: RE: date like MM/YYYY
Thread ID: 104249 Message ID: 104443 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Wednesday, August 16, 2006 2:48:37 PM         
   


> i want to add a date like MM/YYYY
> i required this for expiry date of medician.
>
> warm regards,
> mk.


MK,

As Borislav pointed out, "Where is the Day?" A date has a year, a month and a day. If it hasn't got a day, it cannot be a date. My recommendation would be to have two integer fields, one for the year and one for the month. You would have to validate the year and month that a user enters. You might want to consider using a spinner control for the year and a dropdown for the month. Using these two controls, you could limit the user's data entry choices to valid options only.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

date like MM/YYYY Posted by mk sharma @ 8/14/2006 10:03:25 AM
RE: date like MM/YYYY Posted by Martin Sellwood @ 8/14/2006 10:05:19 AM
RE: date like MM/YYYY Posted by Borislav Borissov @ 8/14/2006 10:10:03 AM
RE: date like MM/YYYY Posted by Ken Murphy @ 8/16/2006 2:48:37 PM