Tolocaletimestring Format, DateTimeFormat object and use its format () method.