Jump to content

Help WIth DOB


refiking

Recommended Posts

On the prior form, I collected the month, date and year.  How can I make it appear as mm-dd-yyyy?  Here is the code:

<?php
session_start();
print $name;
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$dob = $month $day, $year;
$_SESSION['dob'] = $dob;
print $_SESSION['dob'];

Link to comment
https://forums.phpfreaks.com/topic/66053-help-with-dob/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.