Skip to content

AnanthaKannan/date-fn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date-fn

Date fn used to give the date and time format using a particular code. Please select the corresponding code that which you need the format.

Date Example

const dateFn = require('date-fn')
const date = new Date()

dateFn.date(date, 143)
//   1991/08/28 1:10:10 PM

dateFn.date(date, 143, '-')     //3rd parameter is optional
//    1991-08-28 1:10:10 PM

dateFn.date(date, 108)
//      Wed Aug 28 1991

dateFn.date(date, 110)
//     Aug 28, 1991

dateFn.date(date, 5)
//     1:10:10 PM

dateFn.date(date, 6)
//     13:10:10

Code for Date Time

Code Response Code Response
143 1991/08/28 1:10:10 PM 147 1991/28/08 1:10:10 PM
144 1991/08/28 13:10:10 148 1991/28/08 13:10:10
145 1991/08/28 1:10 PM 149 1991/28/08 1:10 PM
146 1991/08/28 13:10 150 1991/28/08 13:10
151 08/28/91 1:10:10 PM 155 08/28/1991 1:10:10 PM
152 08/28/91 13:10:10 156 08/28/1991 13:10:10
153 08/28/91 1:10 PM 157 08/28/1991 1:10 PM
154 08/28/91 13:10 158 08/28/1991 13:10
159 08/1991/28 1:10:10 PM 163 28/08/1991 1:10:10 PM
160 08/1991/28 13:10:10 164 28/08/1991 13:10:10
161 08/1991/28 1:10 PM 165 28/08/1991 1:10 PM
162 08/1991/28 13:10 166 28/08/1991 13:10
167 28/1991/08 1:10:10 PM 171 28 Aug 1991 1:10:10 PM
168 28/1991/08 13:10:10 172 28 Aug 1991 13:10:10
169 28/1991/08 1:10 PM 173 28 Aug 1991 1:10 PM
170 28/1991/08 13:10 174 28 Aug 1991 13:10
175 Wed Aug 28 1991 1:10:10 PM
176 Wed Aug 28 1991 13:10:10
177 Wed Aug 28 1991 1:10 PM
178 Wed Aug 28 1991 13:10

Code for Date

Code Response
101 08/28/91
102 08/28/1991
103 08/1991/28
104 28/08/1991
105 28/1991/08
106 1991/08/28
107 1991/28/08
108 Wed Aug 28 1991
109 28 Aug 1991
110 Aug 28, 1991
111 19910828

Code for Time

Code Response
5 1:10:10 PM
6 13:10:10
7 1:10 PM
8 13:10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •