473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Formating date from an access database

Can anyone help me? I am running my news from an access database, but when the date is displayed (on the browser from the database) the format is mm/dd/yyyy and I would like it to be dd-Month-yyyy. I will much prefer the solution in Jscript asp.
Jul 13 '07 #1
2 1217
acoder
16,027 Expert Mod 8TB
You have posted your question in the Articles section rather than the Forum section.

I have moved it across for you.

MODERATOR
Jul 13 '07 #2
acoder
16,027 Expert Mod 8TB
Can anyone help me? I am running my news from an access database, but when the date is displayed (on the browser from the database) the format is mm/dd/yyyy and I would like it to be dd-Month-yyyy. I will much prefer the solution in Jscript asp.
Use the Javascript Date object and set the date using setFullYear or the relevant methods. Then use the get methods to show the date the way you require.

For the Date reference, see here.

Alternatively, you could use date formatting functions.
Jul 14 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: - - Vivian - - - - - - | last post by:
I am storing dates in a mySql database in the format yyyy-mm-dd. Now, I have set up so that this field is insert by a form. It isn't very user friendly to have to type yyyy-mm-dd, how can I set up...
2
by: Russ | last post by:
Is there a way to convert a date that is entered like this 120403 to 12/04/03? In a access database you can set it so when you enter the field you get __/__/__ and as you fill in each space only...
1
by: Fabiano | last post by:
Please, how can i format a date/time when presenting it to the user? My problem is that i get the date information from my SQL Server database and then show it at my web page. I need to show...
4
by: djc | last post by:
Is there a property or method of the textbox web server control that I can use to format the text in it a certian way. For example I am displaying a date value from a database in a text box. It...
2
by: Tim::.. | last post by:
Hi I'm trying to create a pager that allows you to show records by year and month! I am getting close but would really appritiate some help! Can someone please tell me how I convert the value of...
3
by: Jim in Arizona | last post by:
I have a gridview that's being populated from an access db query. The problem I'm having is that the date/time fields in access that are populating the gridview are showing both date and time, when...
8
by: nishkrish | last post by:
Hi, I am new to access I created the form and report from Allen Browne's Frmwhat Date the way he has described but when i preview report it shows StartDate: name? Enddate: name? am i suppose...
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This problem happens in either Access or SQL Server. In the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.