-
-
Save GuilhE/7a520fe2d8c612943f7712223b345fe4 to your computer and use it in GitHub Desktop.
Medium articles - What's Native
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//commonMain | |
internal expect class Platform() { | |
fun formatDateTimeWithLocale(date: LocalDate, pattern: String): String | |
} | |
//will print for example 09 Março, 09 March, 3月9日... | |
println(Platform().formatDateTimeWithLocale(LocalDate(2024, 3, 9), "dd MMMM")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment