2008 Apr 24 3:42 PM
In my MAIN WINDOW I have date fields like Date of Manifacture, created date and Expiry date.
So, currently I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
DEFINE &outdate& = &mchar-vfdat&
SET &outdate& MASK = 'YYYY-MM-DD'.
but still it is showing format YYYY-MM...
Plz help me how to print my desired date format...
I am waiting for ur reply...
Regards,
Kumar
In my MAIN WINDOW I have date fields like Date of Manifacture, created date and Expiry date.
So, currently I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
DEFINE &outdate& = &mchar-vfdat&
SET &outdate& MASK = 'YYYY-MM-DD'.
but still it is showing format YYYY-MM...
Plz help me how to print my desired date format...
I am waiting for ur reply...
Regards,
Kumar
2008 Apr 24 3:58 PM
Hi Kishore,
you have to check outdate field type.change it according to your requirement
reward points if helpfu.
2008 Apr 24 4:02 PM
Hi
Try to check the value in &mchar-vfdat&, I believe the format date is changed before moving it to the new variable &outdate&.
Try to use this command:
SET DATE MASK = 'YYYY-MM-DD'.
DEFINE &outdate& = &mchar-vfdat&.
&outdate&
SET DATE MASK = 'YYYY-MM''.
Max
2008 Apr 24 4:06 PM
Hi Kishore kumar,
What you can do is befor printing the Expiry date set the date Mask as 'YYYY-MM-DD' and after printing your Expiry Date again set the DATE MASK to 'YYYY-MM'
i.e.
/: SET DATE MASK = 'YYYY-MM-DD'
&mchar-vfdat&
/: SET DATE MASK = 'YYYY-MM'Regards,
Sunil
2008 Apr 24 4:06 PM
Hi,
Declare temporary variable with 10 chars and check
data: v_date(10).
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |