get am pm 12 hour timee laravel 1

get am pm 12 hour timee laravel

h:i:s a

Here is what the above code is Doing:
1. We are importing the datetime module.
2. We are creating a variable called now and setting it equal to datetime.datetime.now().
3. We are printing the current date and time using the strftime() method.
4. We are using the strftime() method to specify the format of the date and time.

Similar Posts