logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-25-2012, 11:30 AM   #1
Jan Neels
 
Join Date: Jan 2012
Location: The Netherlands, Soest
Posts: 2
Default Localisation

Can anyone tell me how I can PHP use Dutch month an day names in the date_format function? and how I can tell Dreamweaver to do so?

Kind regards,

Jan Neels
Jan Neels is offline   Reply With Quote
Old 01-27-2012, 02:41 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

im not sure you can, its not a dreamweaver problem . the locale is from the server so you can try using
setlocale(LC_TIME, "Dutch", "nl_NL");

but it works using strftime
as in this snippet

Code:
<?php
setlocale(LC_TIME, "Dutch", "nl_NL");
$added=strftime("%A %d %B %Y, %H:%M");

echo $added;

?>
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 01-27-2012, 12:21 PM   #3
Jan Neels
 
Join Date: Jan 2012
Location: The Netherlands, Soest
Posts: 2
Default

Thank you.

In wich file do I enter this codee?

Kind regards,

Jan neels
Jan Neels is offline   Reply With Quote
Old 01-27-2012, 11:55 PM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

any php file but its just an example really, as for the locale setting try adding it any file using a date functipn (php) it will depend on the locales set up on ypur server though i believe. just give it a try and see
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com