473,808 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help with css/html coding to add current date shown to visitors

3 New Member
My site uses css to generate html pages. I want to insert text in a certain area and have the date automatically update to the current date when visitors load the page.

Can this be down and how, please? Any help would be most appreciated.

Thanks in advance!

kay
Sep 14 '10 #1
4 2812
drhowarddrfine
7,435 Recognized Expert Expert
CSS does not generate HTML. What you are asking to do cannot be done with HTML or CSS either. You need a programming language.
Sep 14 '10 #2
Kay Womack
3 New Member
ok. thanks. I'm really new at this and need help. what kind of programming language do I need?
Sep 14 '10 #3
Ramil Alcibar
10 New Member
Try JavaScript or PHP but it depends on what programming language your site was written. It also depends what date you want to output: the date on the visitors' computer or your server date or maybe a date for a certain timezone.

Is it pure HTML/CSS? If so, just go with the JavaScript option which displays visitors' computer date.
Sep 14 '10 #4
Kay Womack
3 New Member
yes, it is pure html/css. Thanks, I'll try the js.
Sep 16 '10 #5

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

Similar topics

7
1525
by: mx2k | last post by:
Hello @ all, we have written a small program (code below) for our own in-developement rpg system, which is getting values for 4 RPG-Characters and doing some calculations with it. now we're trying hard to find out how to get it working with 'n' Characters, so you will be asked to enter a number at the beginning, asking you how many characters you want.
1
4728
by: John Norvell | last post by:
I just noticed that recently the javascript I was using to format and display the last modified date of my web page is always reporting the current date instead. It used to work fine. This is true both on the university web server on which the page is hosted and the local mirror I keep on my desktop (SuSE 8.2 Linux). It is a new university, but my desktop filesystem is the same as before. I can see with "ls -l" that the modified date of...
2
6729
by: mattmerc | last post by:
Hi, I would like to have a date_last_modified field for one of my SQL tables. Instead of coding my front end to keep up with this field is there a way to user a formula for this column in Enterprise Manager so that each time a record is created or updated the current date/time will be inserted/updated? I tried using getdate() but then the field always has the current time, which is not what I am looking for. I am looking for the time...
7
31846
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make sure the date is greater than or equal to the current date. If not, I'd like to display the error message to ValidationSummary. It seems to make sense to me to use CompareValidator but the problem is put the current date into CompareValidator. So, I created a hidden text field in my aspx. ...
7
2554
by: Scamjunk | last post by:
Hi, I am basically a linux person being made to work on windows. and i have been given a limited version of the windows i guess - for it doesn't provide a proper help option :(. I sorely miss working on linux. but now, I need to get the current date and if possible the current time as well, from the system. I tried a lot of the inbuilt functions (like localtime()) but it gave me errors that i couldn't rightly comprehend. could anybody...
1
1463
by: daddio | last post by:
I'm a divorced dad that travels constantly with my job and I wanted a way to let my daughter know where I am. I built a simple little website but it needs a little bit of complexity in order to work. I want to create a database in the form of a calender. I want to be able to set a city, state, and 2 images for a date and have the index page recall the current city, state based on the current date. A non-working example of what I'm trying to...
1
10010
by: shiznaw | last post by:
Private Function rprtdate() Dim rprtdates As Date Dim 1mnth As Integer 1mnth= Month(Date) + Month(DateSerial(Year(Date), Month(Date) + 1, Day(Date))) Select Case Frame35.Value 'the following if end user choses one month from the day chosen for reporting period Case Is = 3 rprtdates = Format(Calendar1.Value, "mm/dd/yy", vbSunday)
4
9206
by: Steve Rainbird | last post by:
Is there a way in DB2 I can get the current date and time formatted. In Oracle I could do the following select to_char(sysdate,'yyyymmdd') from dual returns 20070718
4
5577
by: Finn Stampe Mikkelsen | last post by:
Hi Is there any way to make the textbox property show html, like a textarea on a webpage would?? I have a webapplication that saves an textarea complete with html tags and everything... Now i'm coding a windows application to work with the same data and i need these data to be displayed on an windows form, like they would on the
6
1472
vikas1111
by: vikas1111 | last post by:
Hi All In the form which i am coding there is an option of date ,, for that i am using TDBdate control ,, My problem is i need to set that date to the current date i.e . everyday the date should be updated to the current date..Hope i am clear... How can i do that ?????????????/
0
9721
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
9600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
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
10113
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
9195
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
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
5547
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...
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.