Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $date = DateTime::createFromFormat('d/m/Y', $_REQUEST['dob']);
- $date->format('Y-m-d')
- //YYYY-MM-DD HH:MM:SS MySQL Date Type
- //date("Y-m-d H:i:s"); MySQL date Type to PhP
- $newDateString = date_format(date_create_from_format('Y-m-d', $dateString), 'd-m-Y');
- ?>
- <?php
- $source = '2012-07-31';
- $date = new DateTime($source);
- echo $date->format('d.m.Y'); // 31.07.2012
- echo $date->format('d-m-Y'); // 31-07-2012
- ?>
- <?php if(isset($categorydata)){ foreach($categorydata as $crow){ ?>
- <option <?php if($crow['id'] == $blogdata['category_id']){ echo "selected"; } ?> value="<?=$crow['id'];?>">
- <?=$crow['name'];?>
- </option>
- <?php } } ?>
- https://www.youtube.com/VirajsinhNakum?sub_confirmation=1
Add Comment
Please, Sign In to add comment