How to get default date format?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

How to get default date format?

Post by huangchenmin »

Dear all:
For some reason, I need to caculate days between date in format yyyymmdd.
How could I set date format back to default ?
Best Regards.
chen min
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: How to get default date format?

Post by gfilatov »

huangchenmin wrote:Dear all:
For some reason, I need to caculate days between date in format yyyymmdd.
How could I set date format back to default ?
Hi,

Did you try

bd := Set (_SET_DATEFORMAT )
...
Set ( _SET_DATEFORMAT , bd )

:?:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: How to get default date format?

Post by huangchenmin »

gfilatov wrote:
huangchenmin wrote:Dear all:
For some reason, I need to caculate days between date in format yyyymmdd.
How could I set date format back to default ?
Hi,

Did you try
.............

:?:
Dear Sir :
Thanks for your supports, and I found that CA-Clipper support converting mm-dd-yyyy to mm-dd-yy.
That make me enable to caculate days between two date without concering date format convertion.
Thank you again for your supports.
I really learn from your reply.
Best Regards
chen min
Post Reply