Arsip: penambahan waktu ?

 
user image
more 15 years ago

jajang

gini ada edit1.text dan edit2.text ketika saya isikan di edit1.text "01/19/2008" ketika di tab edit2.text hasilnya secara otomatis ngisi dengan "01/19/2009" jadi bertambah 1 tahun gtu ? gmana yach ?
user image
more 15 years ago

mas_kofa


ShortDateFormat := 'MM/dd/yyyy';
dt := StrTodateDef(Edi1.Text, 0);
Edit2.Text := DateToStr(EncodeDate(YearOf(dt)+1, MonthOf(dt), DayOf(dt));
user image
more 15 years ago

mas_kofa


ShortDateFormat := 'MM/dd/yyyy';
ralat :

ShortDateFormat := 'dd/MM/yyyy';
user image
more 15 years ago

faathir

coba pake function : IncYear uses : dateutils
user image
more 15 years ago

LuriDarmawan

to @faathir, tolong width/height avatarnya di kecilin. ASAP thx
user image
more 14 years ago

faathir

oke bos
more ...
  • Pages:
  • 1
Share to

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com