Ldt_text type datanya bener date? apa datetime?
kalo udah bener date kemungkinan beda di format tglnya di PC anda (regional
setting)
untuk date gunakan date("yyyy-mm-dd")
bisa gunakan fungsi left mid right untuk menjadikan format tadi..
bhakti prabandyo wrote:
> Kl object berupa edittext, coba pake getdata .
>
> Ex :
> Em_tanggal.getdata(Ldt_text)
> Sent from my BhakBerry®
> powered by Sinyal Kuat INODSAT
>
> -----Original Message-----
> From: [email protected]
> Sender: [email protected]
> Date: Thu, 23 Sep 2010 07:55:43
> To: <[email protected]>
> Reply-To: [email protected]
> Subject: [indopb] Tanya rubah function gettext ke datetime
>
> Dears pbers,
> Saya ada kesulitan merubah function gettext ke date
> Cthnya
> Script di itemchanged:
>
> Ldt_text=Date(this.gettext())
> Hasilnya selalu 01/01/1900
>
> Padahal saya udah input tgl hari ini, harusnya kan keluarnya tgl hari ini
> Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung
> Teruuusss...!
>
> ------------------------------------
>
> -----------------------------------------------
> IndoPB - Indonesia PB User Group
> http://groups.yahoo.com/group/indopbYahoo! Groups Links
>
>
>
>
>
> ------------------------------------
>
> -----------------------------------------------
> IndoPB - Indonesia PB User Group
> http://groups.yahoo.com/group/indopbYahoo! Groups Links
>
>
>
>
------------------------------------
-----------------------------------------------
IndoPB - Indonesia PB User Group
http://groups.yahoo.com/group/indopbYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/indopb/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/indopb/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> 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/