Pulling a date from MySQL DB
#9

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
No, it is not. You can see list of specifiers and format it the way you like.

pawn Код:
SELECT DATE_FORMAT(REGDATE, '%M %d, %Y %H:%i:%s') AS reg_date FROM ...
and then retrieve string, field name is "reg_date".
Do I run this query within the stats command? Then how do I pull the result into the string? That's what I'm asking. Thanks for any pointers.
Reply


Messages In This Thread
Pulling a date from MySQL DB - by Jing_Chan - 06.08.2018, 13:11
Re: Pulling a date from MySQL DB - by Jing_Chan - 06.08.2018, 21:55
Re: Pulling a date from MySQL DB - by NeXTGoD - 06.08.2018, 22:39
Re: Pulling a date from MySQL DB - by Banditul18 - 06.08.2018, 23:00
Re: Pulling a date from MySQL DB - by Calisthenics - 07.08.2018, 08:35
Re: Pulling a date from MySQL DB - by Jing_Chan - 07.08.2018, 11:10
Re: Pulling a date from MySQL DB - by NaS - 07.08.2018, 12:32
Re: Pulling a date from MySQL DB - by Calisthenics - 07.08.2018, 13:19
Re: Pulling a date from MySQL DB - by Jing_Chan - 07.08.2018, 13:22
Re: Pulling a date from MySQL DB - by NaS - 07.08.2018, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)