PC Review


Reply
Thread Tools Rate Thread

date format - database results wizard

 
 
Andrew Murray
Guest
Posts: n/a
 
      5th Sep 2006
Using FP 2003, & the database results components with an Access 2003
Database.

The web page is www.cursillo.perth.anglican.org, the problem is the top
right column headed "Calendar of Events", you'll see the date format is
mm/dd/yyyy rather than dd/mm/yyyy.

I have set a 'custom' date format in Access of dd/mm/yyyy and the field data
type is Date/Time and the field input mask is 99/99/0000;0;_ (which
"translates" to a date format like 29/12/2000 in Access itself, but not in
the results on the web page).

However, in the web site, the date is still showing a date like 9/29/2000
(mm/dd/yyyy - the US format) I'd like the UK format if possible to be
displayed on the page.

I'm not sure this is a Frontpage problem or an Access problem....It seems
all is correct in Access, but there's no way to change the format in
Frontpage. I've republished the database and the pages displaying the data,
and refreshing the page does not change the content (the dates) to the
format I'm after.

Apologies for cross posting but the issue seems to relevant to both
Frontpage & Access.

Thankyou.

Andrew


 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      5th Sep 2006
"Andrew Murray" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)
> Using FP 2003, & the database results components with an Access 2003
> Database.
>
> The web page is www.cursillo.perth.anglican.org, the problem is the
> top right column headed "Calendar of Events", you'll see the date
> format is mm/dd/yyyy rather than dd/mm/yyyy.
>
> I have set a 'custom' date format in Access of dd/mm/yyyy and the
> field data type is Date/Time and the field input mask is
> 99/99/0000;0;_ (which "translates" to a date format like 29/12/2000
> in Access itself, but not in the results on the web page).
>
> However, in the web site, the date is still showing a date like
> 9/29/2000 (mm/dd/yyyy - the US format) I'd like the UK format if
> possible to be displayed on the page.
>
> I'm not sure this is a Frontpage problem or an Access problem....It
> seems all is correct in Access, but there's no way to change the
> format in Frontpage. I've republished the database and the pages
> displaying the data, and refreshing the page does not change the
> content (the dates) to the format I'm after.
>
> Apologies for cross posting but the issue seems to relevant to both
> Frontpage & Access.
>
> Thankyou.
>
> Andrew


I expect the problem is in the code generated by FrontPage to format the
event date, after it has been extracted from the database, to build the
HTML for the rendered page. The date is stored in your Access database
in a date/time field, which has no inherent format. When working with
the dates in Access, the "dd/mm/yyyy" format you see is the result of
the Format and Input Mask properties you have applied to the field. In
reality, the date is stored internally in a floating point field that is
interpreted in a special way; all formatting is to look like a date is
applied as a rendering process, whether by Access or by the code that
puts it on the web page.

Unfortunately, I don't know enough about FrontPage to suggest a good way
to change the format it's using. I hope it doesn't come down to
changing the regional date settings on the web server.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      5th Sep 2006
"Dirk Goldgar" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)
>
> Unfortunately, I don't know enough about FrontPage to suggest a good
> way to change the format it's using. I hope it doesn't come down to
> changing the regional date settings on the web server.


You could conceivably convert the date into a properly formatted string
in the query that returns it; something like this:

SELECT
EventName,
Format(EventDate, "d/m/yyyy") As FmtDate
FROM
Events
WHERE
EventDate >= Date()
ORDER BY
EventDate;

Failing that, I have a feeling you'll have to get into the JavaScript or
VBScript generated by FrontPage to force the desired formatting, but as
I said before, I don't know anything about FP.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      5th Sep 2006
"Dirk Goldgar" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)
>
> Unfortunately, I don't know enough about FrontPage to suggest a good
> way to change the format it's using. I hope it doesn't come down to
> changing the regional date settings on the web server.


Hmm, this thread seems to suggest you can force date formats by adding a
session setting:


http://groups.google.com/group/micro...c2ec6726c561bf

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      5th Sep 2006
Andrew:
You can reformat the date in your SQL - take a look at these examples:
http://www.spiderwebwoman.com/tutori...with_dates.htm

--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/


"Andrew Murray" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Using FP 2003, & the database results components with an Access 2003
> Database.
>
> The web page is www.cursillo.perth.anglican.org, the problem is the top
> right column headed "Calendar of Events", you'll see the date format is
> mm/dd/yyyy rather than dd/mm/yyyy.
>
> I have set a 'custom' date format in Access of dd/mm/yyyy and the field
> data type is Date/Time and the field input mask is 99/99/0000;0;_ (which
> "translates" to a date format like 29/12/2000 in Access itself, but not in
> the results on the web page).
>
> However, in the web site, the date is still showing a date like 9/29/2000
> (mm/dd/yyyy - the US format) I'd like the UK format if possible to be
> displayed on the page.
>
> I'm not sure this is a Frontpage problem or an Access problem....It seems
> all is correct in Access, but there's no way to change the format in
> Frontpage. I've republished the database and the pages displaying the
> data, and refreshing the page does not change the content (the dates) to
> the format I'm after.
>
> Apologies for cross posting but the issue seems to relevant to both
> Frontpage & Access.
>
> Thankyou.
>
> Andrew
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
date format - database results wizard Andrew Murray Microsoft Frontpage 4 5th Sep 2006 11:28 AM
Format date in a database results region =?Utf-8?B?YmVhY29u?= Microsoft Frontpage 4 5th May 2005 02:54 PM
How to Change Date Format in a Database Results Region? Mardon Microsoft Frontpage 7 3rd Sep 2004 03:04 AM
Re: How to Change Date Format in a Database Results Region? TB Microsoft Frontpage 0 30th Aug 2004 09:33 PM
Database Results Wizard - records with todays date Yeltum Microsoft Frontpage 3 16th Sep 2003 05:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 AM.