Search

Hey there! Maybe it’s a really stupid question, but can I make a date for another language. Its like - I’ve got “02 February 2011”, but I would love to get it as a “2011. gada 2. Februaris” which is in latvian not english. Is there some way to do that?

Anyways, thanks a lot!

Not a stupid question at all. I expect you are using something similar to the Format Date/Time utility to format dates. It takes an ISO formatted date and converts it into common English date/time formats.

Modify the XSLT as necessary to output Latvian instead of English. You’ll find references to names of months, weekdays, etc. See if you can modify these to their corresponding Latvian values and see what happens.

Wow, thanks a lot! This really helped! :)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details