coba pakai datediff()

sub main()
dim hasil as long
hasil = datediff("d", format(cdate(dtpicker1.value),"yyyy/MM/dd"),
format(cdate(dtpicker2.value),"yyyy/MM/dd"))
console.write("selisih tanggal = ")
console.writeline(hasil)


--- In [email protected], Bambang Triono <[EMAIL PROTECTED]>
wrote:
>
> VBers.... Sorry Ganggu lagi nich.... Bagaimana yach menghitung
selisih dua tanggal dengan kode VB...
>    
>   misalkan :
>    
>   DTPicker1.value = "10/11/2005"
>    
>     DTPicker1.value="18/11/2005"
> 
>    
>   maka event selisih akan ditampilkan dalam bentuk angka pada
textbox = 8
>    
>   Thankyou...
>    
>    
>    
> 
> Send instant messages to your online friends
http://uk.messenger.yahoo.com
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 

Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Programmer-VB/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke