473,804 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FAQ Topic - How do I format the Last-Modified date with javascript?

-----------------------------------------------------------------------
FAQ Topic - How do I format the Last-Modified date with
javascript?
-----------------------------------------------------------------------

Apparently, ` new Date() ` reads it correctly, though problems
can occur if the browser returns only two digits for the year.
In particular, time zone, field order and separators may vary.
It is also reliant on the server's clock having been correctly
set at the time of upload. See the URL
below.

http://www.merlyn.demon.co.uk/js-date2.htm#lM
===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javas cript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers.

May 7 '07 #1
1 1829
FAQ server wrote on 08 mei 2007 in comp.lang.javas cript:
-----------------------------------------------------------------------
FAQ Topic - How do I format the Last-Modified date with
javascript?
-----------------------------------------------------------------------

Apparently, ` new Date() ` reads it correctly, though problems
What?

Does new Date() read the Last-Modified date????

This is not what John wrote.
He rightly compared the LMD string
with the string result of new Date(), methinks!
can occur if the browser returns only two digits for the year.
In particular, time zone, field order and separators may vary.
It is also reliant on the server's clock having been correctly
set at the time of upload. See the URL
below.

http://www.merlyn.demon.co.uk/js-date2.htm#lM


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2163
by: Lowell Kirsh | last post by:
In Peter Norvig's Infrequently Answered Questions he explains that the following 2 fnctions look almost identical but are not the same: def printf(format, *args): print format % args, def printf(format, *args): print str(format) % args, The only difference is that in the second one, str(format) replaces format. If args are not given and the format string contains a '%', the first will work but the second will not. Why is this so? It...
0
1309
by: Ajit Singh | last post by:
Hello Gurus, Need your help on following: 1. Whether an MDX query be stored in an XML format? e.g. can the below query be stored in an XML file format: (the query is for illustration only). with set as 'Filter(..Members, Not IsEmpty( (, ) ) )'
5
1848
by: Michael Schwab | last post by:
Hi, I am an artist with limited computer knowledge (but I am able to compile some code) who needs for a project I am working on a way to read in a bmp file, loop through the pixels and store their rgb value in a file in the format (x, y, r, g, b). I want to use these values as the basis for some paintings. I looked around on the internet to find some code, but my skills are just not enough to do something useful with what I have found....
11
5959
by: Grumble | last post by:
Hello, I have the following structure: struct foo { char *format; /* format string to be used with printf() */ int nparm; /* number of %d specifiers in the format string */ /* 0 <= nparm <= 4 */ };
33
2522
by: Chris Croughton | last post by:
I notice the real reason for not posting "off-topic" here is that the result will be a long thread on whether the matter is off-topic or not -- caused by the very people who claim that they don't want to see off-topic discussions posting off-topic messages complaining about the lack of topicality! Messages saying *PLONK* are also off-topic, but the complainers sem to post those a lot as well. If all of the people who currently complain...
11
3016
by: Nathan Wiegman | last post by:
Hi, Anyone know why "s" equals "0.0870000000000000000000" after the following lines execute? Thanks, Nate double d = 0.087000000000000008; string s = string.Format("{0:f22}", d);
2
1581
by: MLH | last post by:
I did these 4 steps to create a topic file 1 Open a new file in a word processor or text editor that can handle rich text format. 2 Write your individual topics, separating each topic with a hard page break. 3 Add appropriate footnotes at the beginning of the file. See Related Topics below. 4 Save the file in rich text format with the .rtf filename
20
427
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I detect Opera/Netscape/IE? ----------------------------------------------------------------------- The `` navigator '' object contains strings which specify the browser and version; however, this is in general not very genuine. Mozilla (and therefore Netscape 6+) allows this to be freely set, and Opera and IE allow it to be modified. There are...
8
1635
by: so many sites so little time | last post by:
this time i am going to use the scripts from the book and just change the names to match what i am trying to do now i just got an error that i know shouldnt be an error i think. this is the error: Could add the site entry because: Column count doesn't match value count at row 1. The query was INSERT INTO home (home_id, header, body, date_entered) VALUES ('Welcome!', 'What is a Progressive Parent? A Progressive Parent ... now i created...
2
10760
by: =?Utf-8?B?VHJhY2tz?= | last post by:
I want to show a specific help page in a .chm file from vb.net. This code shows the .chm file but it just goes to the first page or shows an error on the page: Help.ShowHelp(Me, "myhelp.chm", HelpNavigator.Topic, "A Quick Tour") or Help.ShowHelp(Me, "myhelp.chm", HelpNavigator.Topic, "aquicktour.htm") or all combinations of contents, index, etc. I cant seem to go to a specific
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10594
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10087
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.