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', '-')
Showdate(new Date(), 'dd', 'mm', 'dd', 'yyyy', '.')
Showdate(new Date(2001,11,25), 'dddd', 'mmm', 'dd', 'yy', ' ')


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...



Bookmark and Share
Registered® Trademark™ and CopyrightŠ 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved