Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Julian date
Message
De
09/08/2004 07:38:59
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
 
 
À
09/08/2004 07:29:52
Deepak Chopra
IBM Global Services India Pvt. Ltd.
Pune, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00931697
Message ID:
00931714
Vues:
23
Hi Deepak,

Let me just give you some example

Julian Date = 104001 dd/mm/yyyy = 01/01/2004
1 is century, 04 is year and 001 is day i.e. 1st
104002 will become 02/01/2004

But Julian Date = 99001 dd/mm/yyyy = 01/01/1999

In excel there is a direct formula available which is

In Cell A2 place a Julian date, like 102324

in Cell B2 place this formula: (copy it in)

=DATE(YEAR("01/01/"&TEXT(1900+INT(A2/1000),0)),MONTH("01/01/"&TEXT(1900+INT(A2/1000),0)),DAY("01/01/"&TEXT(1900+INT(A2/1000),0)))+MOD(A2,1000)-1

The date 11/20/02 date will appear in cell B2

I hope this will explain you what I need.

Thanks and regrads

Ashish Patel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform