web_master Posted March 31, 2009 Share Posted March 31, 2009 hi all, is some possibility to print date dayname? Example: something is happened at 12. april 2009. In MySQl database is looks like: Column Year=2009, Column Month=04, Column Day=12 Is some way to after QueryRequest looks like this: 12 04 2009 Sunday I know that the date('l') give a dayname, but what if I enter some date in future?... thanxs Quote Link to comment https://forums.phpfreaks.com/topic/151964-weekday/ Share on other sites More sharing options...
Maq Posted March 31, 2009 Share Posted March 31, 2009 Is some way to after QueryRequest looks like this: 12 04 2009 Sunday Use the date() function. I know that the date('l') give a dayname, but what if I enter some date in future?... It should still work. Quote Link to comment https://forums.phpfreaks.com/topic/151964-weekday/#findComment-798014 Share on other sites More sharing options...
premiso Posted April 1, 2009 Share Posted April 1, 2009 You would have to use the second parameter of date with maybe strtotime if the format is not in a timestamp, if it is just put the timestamp in as the second parameter. date take a look at the manual on date for more information. Quote Link to comment https://forums.phpfreaks.com/topic/151964-weekday/#findComment-798778 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.