A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

gregorian date



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2004, 06:46 PM
jane cline
external usenet poster
 
Posts: n/a
Default gregorian date

how can code converting a date field to the gregorian date
  #2  
Old June 4th, 2004, 08:52 PM
John Vinson
external usenet poster
 
Posts: n/a
Default gregorian date

On Fri, 4 Jun 2004 10:46:58 -0700, "jane cline"
wrote:

how can code converting a date field to the gregorian date


Which of the many, many types of "Gregorian date" do you mean?
Military, with the last digit of the year and a three-digit day; two
digit year and three digit day; four digit year and three digit day;
astronomical Gregorian date; modified astronomical Gregorian date;
....?

For the (probably most common) yyddd try

format([datefield],"yy") & format(datepart("y", [datefield]), "000")


John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.