CARI Infonet

 Forgot password?
 Register

ADVERTISEMENT

View: 4612|Reply: 3

Nak function kira bilangan hari, bulan and tahun.

[Copy link]
Post time 27-1-2010 02:30 PM | Show all posts |Read mode
Post Last Edit by alisetan at 27-1-2010 15:47

Salam daun keladi UOLS,

Sekali lagi Ali nak mintak tolong, function tok kira bilangan hari, bulan dan tahun dalam php.

cth ali ada 2 tarikh,
date1= 12/1/2009
date = 1/4/2009
kalau ali buat kiraan beza dua tarikh tersebut ialah = 19 hari, 2 bulan, 0 tahun

lebih kurang gtulah..


terima kasih.
Reply

Use magic Report


ADVERTISEMENT


 Author| Post time 27-1-2010 05:29 PM | Show all posts
dah dpt dah...heheheh
Reply

Use magic Report

Post time 28-1-2010 12:56 PM | Show all posts
haha ko nak kira pakai program C ke VB ke database sql ke? mostly ada method dia..

yg aku masih ingat ada builtin function datediff
Reply

Use magic Report

Post time 28-1-2010 03:36 PM | Show all posts
sabau je la.. hahaha.. ade built in function php kan utk kira... tmbh logik sesikit jer
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CARI Infonet

10-5-2024 07:26 AM GMT+8 , Processed in 0.056368 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list