Datepicker pada edit PHP Codeigniter

 

Selamat Pagi,

Ada kasus input data dengan date picker tidak mandatory di input. Setelah input data  data tersimpan null. Ketika di edit dan save akan tersimpan 0000-00-00. Ketika 0000-00-00 akan di edit date picker muncul tahun 0. Dan jika tidak jadi di edit di save tersimpan 0-11-30. Capture akan diberikan dan source code

jQuery PHP CodeIgniter Ajax

Project Class: Open to Suggestions
Published Budget: Open to Suggestions
Finish Days: 2
Published Date: 29/01/2018 07:01:56 WIB
Start Date: 29/01/2018 09:02:41 WIB
Project Status: Closed
Accepted Worker: Iswanto (Iswanto)
Accepted Budget: Rp 50,000
Project Ending: Completed
Finish Date: 30/01/2018 13:16:44 WIB

Project Owner

anadrep
    
10.00/10.00
166 Point
#1,589 dari 178,651
Rated Worker: 10.00/10.00

Pekerjaan sudah OK, Cepat dikerjakan.

Accepted Worker

Iswanto
Kota Jakarta Barat
    
9.73/10.00
18,527 Point
#4 dari 178,651
Rated Owner: 10.00/10.00

tq mas,

semoga bisa bekerja sama lagi

5 bintang buat mas

  User Bids

ibnusadamhusen
    
10.00/10.00

EkoSetiawan
    
9.83/10.00

Iswanto
    
9.73/10.00

franszhafran
    
9.89/10.00

variety
    
9.82/10.00

airman7.com
    
9.38/10.00

irvandi
    
9.32/10.00

jamalfirdaus
    
7.25/10.00

teguhsuby
    
0.00/10.00

budiamanprasetyo
    
0.00/10.00

diditriawan
    
0.00/10.00

railondi
    
0.00/10.00

ydahirsa
    
0.00/10.00

anggadwih
    
0.00/10.00

iksansahib
    
0.00/10.00

dekopral
    
0.00/10.00

Recommended Workers

Iswanto

18,527 points
390 projects
    
9.73/10.00

steven.comptia

22,910 points
613 projects
    
9.96/10.00

imzers

11,287 points
55 projects
    
9.87/10.00

idlamalif

10,273 points
138 projects
    
9.88/10.00

MCandraEkaSaputra

10,744 points
72 projects
    
9.86/10.00

Recommended Services

Pembuatan bot line

Rp 1,500,000
6 sales
    
10.00/10.00

Script Full Code Mutasi Bank

Rp 4,500,000
3 sales
    
9.67/10.00

Pembuatan template website & Slicing PSD to HTML

Rp 300,000
9 sales
    
10.00/10.00

Open Projects

Membuat aplikasi Marketplace

Open to SuggestionsOwner: Grapadi
Deadline: 14 days

Upgrade Fitur Plugin Rotator Ninja

Open to SuggestionsOwner: fredytang
Deadline: 7 days

Regex URL Matches

Rp 100,000Owner: SuburbMedia
Deadline: 1 days

Membuat master data program webbased degan Ci

Open to SuggestionsOwner: Growarrow
Deadline: 2 days