-->

Friday, January 6, 2012

Hadiah Dari Secret Admire




Tetiba rini dapat parcel yang menimbulkan tanda Tanya….hehehehe..mula2 terdetik aikkk aku ada order baju pape ke?(sebabnya aku mmg suka beli online….yg lg bestnya tertulis baju plak kan depan tuh….hati berbunga riang lah ingatkan ada yg baik hati kasi aku baju…akakakaka…dengan semangatnya aku pun buka lah plastic pembalut pos laju tuh…jeng2…ada box berbalut kertas bunga youuu!!…terus bersuara…”aik sapa lak kasi parcel nih”..kononnya nak komplen kat office mate aku yg sorang ni  lah…selalunya dia xcited skit…tetiba dia senyum sinis je sambil kate “Tengok lah”…seyes da rasa lain…cam tau je sapa pengirimnya…hehehehe

Dengan seribu tanda Tanya…akupun bukak lah pembalut tuh pelan2 tapi terkoyak gak le aku kerjakan…kehekhekhe…x sabor kate…jeng..jeng….ini rupanya…

Laaaa bukan aku punya ropanya...ilang bunga2 hatiku...hehehe


omak sangka omak punya…tua2 ada secret admire gituh..sekali anak punya daaa….hadiah besday dia ahad nih (8/1/2011)…hehehehe…hmmmm papepun thanks to my office mate….tolong terharu untuk sara….2nd besday gift for my little qaisara….cuteeeee!!!!hehehehehe

Wednesday, January 4, 2012

Masalah Coding – Adding 2 weeks from a date (PHP code)


K tetiba rini nak cerita pasai coding lak….dah berpinau campuq berserabut tau kepala aku nih memikiokan cara nak convert date nih…since last week tau…merata website aku masuk ajukan soalan…sekali dapat idea from my officemate untuk join group PHP…setelah join aku pun mulakanlah ngarang soalan…seyes benda simple tapi susah nye la hai nak dapat solutionnya….ni haaa masalh yg aku hadapi….


Tp yg bestnya sehari je aku join group nih terus aku dapat solution nye….thanks kepada yg membantu….kalau dak nek berasap lahhh aku setlekan prob yang x semnggah nih….so, sesapa yang involve ngan php programming leh la join this group to share apa2 yg x dapat disettlekan…x de lah berapsap sengsorang kan?bukan apa sharing is caring…disamping tuh leh bagi info kat orang len gak kalau wujud masalh yg sama….huhuhuhuhu

Ni group yang aku join : http://www.php.net.my/

Dan ni solution yang aku dapat from en. Mosfet83…thanks a lot…

<?php
$date = '19/11/2009';
$date = explode('/',$date);
$newdate = strtotime ( '+2 week', strtotime($date[2].'/'.$date[1].'/'.$date[0]) );
$newdate = date ('d/m/Y', $newdate);
echo $newdate;
?>

Dan ni antara contoh yang aku search untuk format date Y-m-d. Sangat mudah..hehehe..


Subtracting days from a date


The following example will subtract 3 days from 1998-08-14. The result will be 1998-08-11.
1
2
3
4
5
$date = "1998-08-14";
$newdate = strtotime ( '-3 day' , strtotime ( $date ) ) ;
$newdate = date ( 'Y-m-j' , $newdate );
 
echo $newdate;

 

 

 

Subtracting Weeks from a date


The following example will subtract 3 weeks from 1998-08-14. The result will be 1998-07-24. Notice that the only difference in the code is the week statement.
1
2
3
4
5
$date = "1998-08-14";
$newdate = strtotime ( '-3 week' , strtotime ( $date ) ) ;
$newdate = date ( 'Y-m-j' , $newdate );
 
echo $newdate;

 

Subtracting Months from a date


The following example will subtract 3 months from 1998-08-14. The result will be 1998-05-14. Notice that the only difference in the code is the month statement.
1
2
3
4
5
$date = "1998-08-14";
$newdate = strtotime ( '-3 month' , strtotime ( $date ) ) ;
$newdate = date ( 'Y-m-j' , $newdate );
 
echo $newdate;

 

Subtracting Years from a date


The following example will subtract 3 years from 1998-08-14. The result will be 1995-08-14. Notice that the only difference in the code is the year statement.
1
2
3
4
5
$date = "1998-08-14";
$newdate = strtotime ( '-3 year' , strtotime ( $date ) ) ;
$newdate = date ( 'Y-m-j' , $newdate );
 
echo $newdate;

 

Adding days, months, weeks and years from a date


There isn’t really much difference from subtracting and adding dates. To add dates, just use any of the examples above and replace the negative (-) with a positive (+) e.g. ‘+3 weeks’


Dan ni lagi satu cara...sama je outputnya cuma susunan code je berbeza

$date = date("Y-m-d"); //current date
$newdate = strtotime(date("Y-m-d", strtotime($date))."+1 day"); 
$newdate = strtotime(date("Y-m-d", strtotime($date))."+1 week");
$newdate = strtotime(date("Y-m-d", strtotime($date))."+2 week");  
$newdate = strtotime(date("Y-m-d", strtotime($date))."+1 month"); 
$newdate = strtotime(date("Y-m-d", strtotime($date))."+30 days");









Tuesday, January 3, 2012

Azam Tahun 2012


Muncul je tahun  baru nih mulalah setiap orang nak pasang azam and cita2 kan?nak jadi lebih baik, lebih bermutu dan lebih unggul….aku pun sama lah…kalau bleh nak lebih baik dalam agama, nak lebih baik dalam kerjaya, nak lebih baik dalam rumahtangga, nak lebih baik sebagai anak, isteri dan mama and kalau boleh nak buang satu sikap aku yg buruk nih…sian my hubby sabar je dengan karenah aku nih…sikap ape?korang x yah tahu lah malu aku…ekekeke…bukan apa takut baby terikut lak…kekeke…dan kalau boleh nak jadi insan sesabar my hubby..boleh ker?aku kan api….hahahahaha….

Semalam masa tengah pangku My Qaisara tetiba terpandang muka dia…pastu terus terbayang 1st time pandang muka dia masa kat sepital dulu…pastu terus rasa rindu tau pegang baby terkuek2 tuh….terus suarakan kat hubby…”Papa, rasa cam nak tambah baby lah…rindu lak cuit2 pipi baby yang kecik molek tuh”…trus hubby bersuara…”JOMMMMM”….opsss terxcited pulak…ni bleh jadi azam tahun baru gak ker?ekekekekekeke

Teruja tengok time nih...perasaan yg x dapat digambarkan...mulalah lah tuh nak menggatai...hehehehehe

Related Posts Plugin for WordPress, Blogger...