Deaddancer Posted July 14, 2008 Share Posted July 14, 2008 I have an application that needs to display dates in different formats, depending on where the user is accessing the application. The users windows default date format has already been customized (i.e. dd-mm-ccyy in Europe, mm-dd-ccyy in the U.S.), so I'd like to be able to somehow retrieve that information at the beginning of the script before I output dates to the screen. Can this be done? I'm guessing that PHP itself might not be able to do this, but perhaps java or ajax can? Thanks, Deaddancer Quote Link to comment Share on other sites More sharing options...
trq Posted July 14, 2008 Share Posted July 14, 2008 Yes, perhaps javascript or ajax can but php cannot. We have an ajax board, further down. Quote Link to comment Share on other sites More sharing options...
Deaddancer Posted July 15, 2008 Author Share Posted July 15, 2008 Thank you...can you move this thread to that forum, or should I repost? Quote Link to comment Share on other sites More sharing options...
Deaddancer Posted July 15, 2008 Author Share Posted July 15, 2008 I know that this can be done in VB and .ASP, so I'm hoping that there is a similar function for Java or Ajax that I can include in my PHP program. I can't believe that this hasn't already been an issue for someone coding in PHP, but I keep running into dead ends while googling different variations of "retrieve windows default date format in" => PHP/Java/Ajax/etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.