![]() |
|
Thread Tools |
#1
|
|||
|
|||
I want to get the current day and month of users
Hi
I'm looking for a function to get the current day and month for user, I think there was a built in function to do this but I don't find it by search here. Thanks in advance. No members have liked this post.
|
#2
|
||||
|
||||
current day and month for user? I don't follow, do you mean you want to display the current month and day to users?
No members have liked this post.
|
#3
|
|||
|
|||
yes, I want the current day and the current month of the user (you know there is difference regarding to the time zone)
No members have liked this post.
|
#4
|
||||
|
||||
Like this line in the footer, with the current Month added (Month will not vary by user, unless it is right at the end/start of the month)
No members have liked this post.
|
#5
|
||||
|
||||
No members have liked this post.
|
#6
|
|||
|
|||
Originally Posted by Dragonsys
I know that, but I need to get the exact day and month for the user who browse the forum in current time.![]()
For example if there is a user browsing from USA when his watch is 2:00 pm it maybe 2 am for other user browsing from china and then they are in different days --------------- Added 21 Dec 2015 at 21:37 --------------- thanks, but unfortunately it doesn't help, I want the date for the user who browsing the forum at anytime. I think I'm looking for something like maketime function. No members have liked this post.
|
#7
|
||||
|
||||
Ok, well you can create a custom plugin and then use a template hook to place it. Where are you wanting this to appear on the page?
No members have liked this post.
|
#8
|
|||
|
|||
Let me explain what I'm looking for exactly.
I have a quote table every day has it is unique quote, the dates stored in database in two columns 1 for day and another one for the month. So if today is 21 December, I must see the quote for day 21 and month 12 from that table, but other user browsing from china will see the quote for day 22. could you please help me to get the current day and month for every single user browsing my site? No members have liked this post.
|
#9
|
||||
|
||||
ok, making a bit more sense now
![]() I assume you are using a custom plugin to display the quotes. Give me a bit and I will try to get you the code you need to add to your plugin. No members have liked this post.
|
#10
|
|||
|
|||
Thank you
No members have liked this post.
|
#11
|
|||
|
|||
I'm still looking for function to do this thing ^_^
No members have liked this post.
|
#12
|
|||
|
|||
I think you want the function vbdate(), in includes/functions.php. It takes a format string like the php function date(), so you could do something like pass it the string 'j,n' then explode it.
No members have liked this post.
|
#13
|
||||
|
||||
I'm thinking more along the lines of vbmkdate()
No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 23:51.