Title: php echo date
Last modified: August 21, 2016

---

# php echo date

 *  [Swinnnk](https://wordpress.org/support/users/swinnnk/)
 * (@swinnnk)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-echo-date-help/)
 * Hi
 * Im a complete newbie to the whole php world. Ive been trying to learn this morning.
   But what im trying to achieve is more than i can create at this time. And the
   deadline is closing in hard.
 * What is need is a php code that calls out the current date + time. This is what
   i got so far.
 * > <?php echo date(‘F d, Y G:i:s’) ?>
 * This does some of the trick, however, i need the text in swedish. Ive been reading
   about set locale, but i cant get my head around it.
 * So basicly i want a code that calls out the following.
 * > Weekday, day month, year, HH:MM:SS
   >  ex Tuesday, 8th april, 2014. 11:03:25
 *  In swedish.
 * I would be super appriciative if someone could help me with this.
 * Regards
    Michael

Viewing 1 replies (of 1 total)

 *  Thread Starter [Swinnnk](https://wordpress.org/support/users/swinnnk/)
 * (@swinnnk)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-echo-date-help/#post-4785840)
 * Ok, so i actually managed to get it working the way i want it to. If someone 
   is interested.
    im using
 * >  <?php
   >  setlocale(LC_TIME, “sv_SE”); echo strftime(“%A %d %B %Y , vecka %V”);?
   > >
 * Wich reports back tisdag 08 april 2014 , vecka 15

Viewing 1 replies (of 1 total)

The topic ‘php echo date’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Swinnnk](https://wordpress.org/support/users/swinnnk/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/php-echo-date-help/#post-4785840)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
