Basic ShowDate Function
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
 
CSGNetwork
Snippets
Calculators
Top Free Apps
Home
Back



Right click this window and select "view source" in order to copy the source for this script.

Basic ShowDate Function

Syntax:

Showdate ( [date object|string], [day string], [month string], [date string], [year string], [delimeter string] )

Date:- Javascript date object in the form new Date(), new Date(1982,06,30).

Day:- Day string in the form "dddd" or "ddd".

Month:- Month string in the form "mmmm", "mmm", "mm".

Date:- Date string in the form "dddd", "ddd", "dd", "d".

Year:- Year string in the form "yyyy", "yy".


Example Results
Showdate(new Date(), 'dddd', 'mmm', 'dd', 'yyyy', '-') Thursday, June-05-2025
Showdate(new Date(), 'dd', 'mm', 'dd', 'yyyy', '.') 0506.05.2025
Showdate(new Date(2001,11,25), 'dddd', 'mmm', 'dd', 'yy', ' ') Tuesday, Dec 25 01


Basic ShowDate Function

This group of routines demonstrates the capabilities of our basic ShowDate function; call it where ever it is needed.
View the source...



This Page Last Downloaded or Refreshed: 06/05/2025 16:20:18
Bookmark and Share
Registered® Trademark™ and Copyright© 1973 - 2025 CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved