php - How to get current date in codeigniter -


how current date in codeigniter in yy-mm-dd format. wants current date in yy-mm-dd frmat , put value input text box

you can use php date function.

date('y-m-d'); 

up knowledge, there no separate date function in codeigniter.

edit :

but if want date in format 13-04-05 [ yy-mm-dd ], try this

date('y-m-d'); 

for more date formats, check link php date formats


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -